Solution:
Use PB commands, no problem.
Or use PowerBasic.
Also no problem with this.
+1 :lol:
PS: falsams code schould be working...
Procedure.s GETFILETXT(PATH.l);文件名地址
sbuff.l;返回长度
Filehwnd.l= CreateFile_(PATH, #GENERIC_READ, 0, 0, #OPEN_ALWAYS, #FILE_ATTRIBUTE_NORMAL, 0)
If Filehwnd ...
Search found 29 matches
- Mon Feb 29, 2016 8:45 am
- Forum: Coding Questions
- Topic: Problem with CreateFile_()
- Replies: 15
- Views: 2177
- Mon Feb 29, 2016 4:35 am
- Forum: Coding Questions
- Topic: Problem with CreateFile_()
- Replies: 15
- Views: 2177
Re: purebasic BUG
Want to know the problemTI-994A wrote:Yes; no IMA (Windows 8.1 with PureBasic v5.41 LTS x64).falsam wrote:[Window 10] [PB 5.42 x86] No IMA. The file is created.
No solution yet
powerbasic no problem
- Mon Feb 29, 2016 4:07 am
- Forum: Coding Questions
- Topic: Problem with CreateFile_()
- Replies: 15
- Views: 2177
Re: purebasic BUG
which bug ? Root disk acces ?
Try this code q.l= CreateFile_(GetHomeDirectory()+"Desktop/888.txt", #GENERIC_READ, 0, 0, #OPEN_ALWAYS, #FILE_ATTRIBUTE_NORMAL, 0)
Global a.s{10000000}
Debug q
ReadFile_(q, @a, 9, #Null, #Null) Question : Why not use the native features of PureBasic?
Want to know ...
Try this code q.l= CreateFile_(GetHomeDirectory()+"Desktop/888.txt", #GENERIC_READ, 0, 0, #OPEN_ALWAYS, #FILE_ATTRIBUTE_NORMAL, 0)
Global a.s{10000000}
Debug q
ReadFile_(q, @a, 9, #Null, #Null) Question : Why not use the native features of PureBasic?
Want to know ...
- Mon Feb 29, 2016 4:05 am
- Forum: Coding Questions
- Topic: Problem with CreateFile_()
- Replies: 15
- Views: 2177
Re: purebasic BUG
No,bug See MSDN
lpNumberOfBytesRead [out, optional]
A pointer to the variable that receives the number of bytes read when using a synchronous hFile parameter. ReadFile sets this value to zero before doing any work or error checking. Use NULL for this parameter if this is an asynchronous operation ...
lpNumberOfBytesRead [out, optional]
A pointer to the variable that receives the number of bytes read when using a synchronous hFile parameter. ReadFile sets this value to zero before doing any work or error checking. Use NULL for this parameter if this is an asynchronous operation ...
- Sun Feb 28, 2016 8:41 pm
- Forum: Coding Questions
- Topic: CHR(0) AND #NULL$ problem
- Replies: 8
- Views: 1145
CHR(0) AND #NULL$ problem
Code: Select all
a.s="a"
b.s="b"
c.s=Chr(0)
d.s=#Null$
MessageRequester("",a+c+b,0)
MessageRequester("",a+d+b,0)
The correct value should be output only 'a
PUB is not truncated Chr (0)
'
- Sun Feb 28, 2016 8:34 pm
- Forum: Coding Questions
- Topic: Problem with CreateFile_()
- Replies: 15
- Views: 2177
Problem with CreateFile_()
q.l= CreateFile_("c:\888.txt", #GENERIC_READ, 0, 0, #OPEN_ALWAYS, #FILE_ATTRIBUTE_NORMAL, 0)
Global a.s{10000000}
Debug q
ReadFile_(q, @a, 9, #Null, #Null)
Do not use the PUREBASIC function(CreateFile AND ReadFile)
Using windows APi(CreateFile_,ReadFile)_
You will find BUG
OK ...
- Thu Feb 25, 2016 2:15 am
- Forum: Coding Questions
- Topic: Gets the address of the calling function
- Replies: 5
- Views: 1540
Re: Gets the address of the calling function
You can use ASM to push caller's adress to one of registers before making call, and then get it from called function. But this makes no sense as it is more clear to use something like that
EnableExplicit
Global *A_freedom_to_go_home
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Procedure SomeProc ...
EnableExplicit
Global *A_freedom_to_go_home
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Procedure SomeProc ...
- Thu Feb 25, 2016 2:07 am
- Forum: Coding Questions
- Topic: Gets the size function
- Replies: 10
- Views: 4279
Re: Gets the size function
Olliv wrote:Fn = FuNctionCode: Select all
FnLambdaStart: Procedure FnLambda() ; EndProcedure FnLambdaEnd: FnLambdaSize = ?FnLambdaEnd - ?FnLambdaEnd
"FnLambda" = Function name example
Function = Same as "procedure" (convention)
debug FnLambdaSize =0 ?????
- Wed Feb 24, 2016 3:12 pm
- Forum: Coding Questions
- Topic: Gets the size function
- Replies: 10
- Views: 4279
Gets the size function
Code: Select all
Procedure MY()
i=1
b=2
EndProcedure
GetprocodeSIZE(@my());??vHow To write
Gets the size Proced re code
- Wed Feb 24, 2016 2:45 pm
- Forum: Coding Questions
- Topic: Gets the address of the calling function
- Replies: 5
- Views: 1540
Gets the address of the calling function
Global p.l
Procedure pp1()
; I want To get the one who calls me
; I want To get the one who calls me
; I want To get the one who calls me
; I want To get the one who calls me
!mov [v_p],ebp
Debug Hex(p+4) ;ERRO
EndProcedure
Procedure pp2()
pp1()
EndProcedure
Debug ...
- Wed Feb 17, 2016 3:34 pm
- Forum: Coding Questions
- Topic: Static library correct use method
- Replies: 2
- Views: 887
Static library correct use method
PUB how to correctly debug the use of static libraries
For example the following example how to correctly use the static crying with PUB
Is the whole forum no one can solve it
PUB → MinHook.LIB ? (Please compile)
http://www.codeproject.com/Articles/44326/MinHook-The-Minimalistic-x-x-API ...
For example the following example how to correctly use the static crying with PUB
Is the whole forum no one can solve it
PUB → MinHook.LIB ? (Please compile)
http://www.codeproject.com/Articles/44326/MinHook-The-Minimalistic-x-x-API ...
- Wed Feb 17, 2016 11:13 am
- Forum: Coding Questions
- Topic: Technical problem request master solution
- Replies: 4
- Views: 1285
Re: Technical problem request master solution
POLINK: error: Unresolved external symbol '___security_cookie'.
POLINK: error: Unresolved external symbol '@__security_check_cookie'.
POLINK: error: Unresolved external symbol '___iob_func'.
POLINK: error: Unresolved external symbol '__except_handler4'.
POLINK: fatal error: 4 unresolved external(s ...
POLINK: error: Unresolved external symbol '@__security_check_cookie'.
POLINK: error: Unresolved external symbol '___iob_func'.
POLINK: error: Unresolved external symbol '__except_handler4'.
POLINK: fatal error: 4 unresolved external(s ...
- Wed Feb 17, 2016 9:02 am
- Forum: Coding Questions
- Topic: Technical problem request master solution
- Replies: 4
- Views: 1285
Technical problem request master solution
POLINK: error: Unresolved external symbol '___security_cookie'.
POLINK: error: Unresolved external symbol '@__security_check_cookie'.
POLINK: error: Unresolved external symbol '___iob_func'.
POLINK: error: Unresolved external symbol '__except_handler4'.
POLINK: fatal error: 4 unresolved external(s ...
POLINK: error: Unresolved external symbol '@__security_check_cookie'.
POLINK: error: Unresolved external symbol '___iob_func'.
POLINK: error: Unresolved external symbol '__except_handler4'.
POLINK: fatal error: 4 unresolved external(s ...
- Thu Nov 26, 2015 9:06 am
- Forum: Coding Questions
- Topic: SKIN UI HELP ME
- Replies: 0
- Views: 720
SKIN UI HELP ME
Recommend a good user interface library
I like the beautiful programming interface.
Who can give me a PUBREBASIC to use.
DirectUI
I like the beautiful programming interface.
Who can give me a PUBREBASIC to use.
DirectUI
- Sun Nov 01, 2015 1:14 am
- Forum: Coding Questions
- Topic: libcurl
- Replies: 2
- Views: 1255
Re: libcurl
I have write permissions.Zebuddi123 wrote:Hi zgneng Path permission
change "c:\1.txt" to "Protected cookie_file.s = GetTemporaryDirectory()+"1.txt" or somewhere you have file permission to write to.
Zebuddi.