Search found 9 matches

by sonic3d
Mon Aug 08, 2005 8:26 pm
Forum: Coding Questions
Topic: New CostumButtons - Please test this
Replies: 8
Views: 3059

I try to put a button or radio button in a Custom Back control,it looks well but fail to trigger #PB_Event_Gadget.I noticed that GPI use "UseGadgetList(hWndMain)" in procedure "CreateCustomBack(...)" and "UseGadgetList(OldParentId_)" in
procedure "CloseCustomBack()" to switch Gadget relationship ...
by sonic3d
Sat Jul 23, 2005 7:07 pm
Forum: General Discussion
Topic: Register recovery error(is this a bug or faults of my code?)
Replies: 4
Views: 1498

Thanks again fweil!!

You really gimme a new idea.And also,great code you post.
I tried your code and it work well in most case.Only a little problem when process string like this one:


1,"Advanced Topics in Database Research. Volume 4","Siau, Keng","Idea Group Publishing",2005,126093,0,"Database ...
by sonic3d
Sat Jul 23, 2005 11:08 am
Forum: General Discussion
Topic: Register recovery error(is this a bug or faults of my code?)
Replies: 4
Views: 1498

Thanks,fweil! :lol:

But my purpose is to process a line in CSV file like this(Shoud be in one line):
1,"SAS/ETS 9.1 User's Guide. Volume 1",,"SAS Publishing",2004,108350,0,SAS/ETS.,005.36,"HA30.3.S274 2004eb",Available,$231.95,,1590472446',1590474120',

some items in this string contain quote ...
by sonic3d
Fri Jul 22, 2005 11:27 pm
Forum: General Discussion
Topic: Register recovery error(is this a bug or faults of my code?)
Replies: 4
Views: 1498

Register recovery error(is this a bug or faults of my code?)

I recently wrote these code,and suffered written to readonly memory error.
I debuged the code in IDA,and found after all the code of this function executed,the return address in stack is pointed error by ESP(four bytes lower than the exact address which stored the correct return address)

Some one ...
by sonic3d
Sun Jul 04, 2004 8:03 pm
Forum: General Discussion
Topic: How to put a DLL written in PB into a VC project?
Replies: 2
Views: 1301

No one knows?

I tried to load library in VC,it finished successfully and returned a handle.But when I used function point and pass PB string by using C/C++ char*,it failed and said the ESP was not properly saved or parameter incorrected.I thought there should be other method to pass PB string from VC,anyone knows ...
by sonic3d
Wed Jun 30, 2004 1:58 pm
Forum: General Discussion
Topic: How to put a DLL written in PB into a VC project?
Replies: 2
Views: 1301

How to put a DLL written in PB into a VC project?

I wrote a little dll in to send info to a server(written in PB,too),and I wrote a test program in PB again to prove if the dll is working.Now it works well,but how can I write a program in Visual C++ that using this dll correctly?Would some one show me a way to solve it.(Static loading or Dynamic ...
by sonic3d
Fri Jun 25, 2004 6:46 pm
Forum: Coding Questions
Topic: How can I read data from exe file which is running?
Replies: 4
Views: 1409

How can I read data from exe file which is running?

The problem should be how can a running PB program know its path and filename?

Or any better idea for reading data from exe file which is running.

Thanks a lot! :oops:
by sonic3d
Thu Oct 02, 2003 4:36 pm
Forum: Coding Questions
Topic: How to get the number of lines in the file quickly!
Replies: 3
Views: 1283

Thank you very much indeed!
It's really fast! :D
by sonic3d
Thu Oct 02, 2003 2:44 pm
Forum: Coding Questions
Topic: How to get the number of lines in the file quickly!
Replies: 3
Views: 1283

How to get the number of lines in the file quickly!

Sorry for my poor English!

Anyone can show me a way to get how many lines in a file quickly.
I'm using a stupid solution:


If ReadFile(0, GetGadgetText(#TextFilename))
k.l=0
While Eof(0)=0
InfoString$ =ReadString()
k.l=k.l+1
Wend
SetGadgetText(#TextBX, Str(k.l))
Debug "File opened ...