Search found 11 matches

by 8bit
Sat Jul 05, 2003 4:29 pm
Forum: Coding Questions
Topic: Resource files
Replies: 2
Views: 1292

thanks

Thanks alot buddy, I appreciate the help alot. Ill look this API call up.. I didnt get to see it on the API guide..ill look for it in msdn maybe :-D
Greets,
8bit
by 8bit
Fri Jul 04, 2003 2:34 pm
Forum: Coding Questions
Topic: Resource files
Replies: 2
Views: 1292

Resource files

I am trying to Dynamically change the icon in an EXECUTABLE file. I cant seem to find any API calls for this, and i search the forums and couldnt find anything at all. Thanks for any of your help!
by 8bit
Wed Jun 18, 2003 4:19 pm
Forum: Coding Questions
Topic: API calls
Replies: 16
Views: 4999

Dim tcprow2 As MIB_TCPROW
Dim ret as long
DoEvents
With tcprow2
.dwLocalAddr = inet_addr(ListView1.SelectedItem.Text)
.dwLocalPort = htons(ListView1.SelectedItem.SubItems(1))
.dwRemoteAddr = inet_addr(ListView1.SelectedItem.SubItems(2))
.dwRemotePort = htons(ListView1.SelectedItem.SubItems(3 ...
by 8bit
Tue Jun 17, 2003 10:50 pm
Forum: Coding Questions
Topic: API calls
Replies: 16
Views: 4999

Well. If this is not a failure.. Then why doesnt it kill a connection? Ive even tried the SetTcpEntryToStack. Maybe this isnt the right program to be making in PureBasic.. The same code (modified a bit) Works fine in visual basic. Matter of fact, im just porting a application i made in Visual Basic ...
by 8bit
Tue Jun 17, 2003 1:11 pm
Forum: Coding Questions
Topic: API calls
Replies: 16
Views: 4999

Re: whaaA?


It means the operation is in progress and is running at the same time (asynchronously) as your own code. This is not a failure.

Hmm.. So Im not really sure what all that means. Could you give me a link that explains it.. or explain it your self better? Thanks. Oh and yep all the variables are ...
by 8bit
Mon Jun 16, 2003 10:55 pm
Forum: Coding Questions
Topic: API calls
Replies: 16
Views: 4999

whaaA?

I did this :

Code: Select all

Result.s = GetErrorDLL() 
debug Result
and it said : Overlapped I/O operation is in progress.
WTF? i wish i knew how to decode this message.. Overlapped? does that mean im somehow overflowwing a buffer? I/O is input/output lol i dunno..can anyone help me?
by 8bit
Mon Jun 16, 2003 9:07 pm
Forum: Coding Questions
Topic: API calls
Replies: 16
Views: 4999

8bit,

-1 usually signifies an error (although it varies, check the win32 docs).

Use the api calls GetLastError_() and FormatMessage_ () to find out exactly whats going on, like in this example:

http://forums.purebasic.com/english/viewtopic.php?t=3809&highlight=getlasterror
I made my own program ...
by 8bit
Mon Jun 16, 2003 6:16 pm
Forum: Coding Questions
Topic: API calls
Replies: 16
Views: 4999

hmmm

*sigh* I debuged the output of dwLocalAddr, and its a negative number...but all the rest are positives.. The dwRemoteAddr is a positive number.. shouldnt dwLocalAddr be a positive. maybe ill look into a conversion? hmmm.. Thanks for your "help" :wink:
by 8bit
Mon Jun 16, 2003 12:01 pm
Forum: Coding Questions
Topic: Include mp3 file in exe
Replies: 26
Views: 6903

::amazed::

The seems like a VERY large price for a simple MP3 Encode/Decoder. I wonder how hard it is to make a MP3 Encoder/Decoder? We should attempt it!! heheh
by 8bit
Mon Jun 16, 2003 3:13 am
Forum: Coding Questions
Topic: API calls
Replies: 16
Views: 4999

;)


TcpRow.MIB_TCPROW

; Set state to DELETE_TCB, to kill the connection
TcpRow\dwLocalAddr = inet_addr_(GetGadgetItemText(#List1,1,0))
TcpRow\dwLocalPort = htons_(GetGadgetItemText(#List1,1,1))
TcpRow\dwRemoteAddr = inet_addr_(GetGadgetItemText(#List1,1,2))
TcpRow\dwRemotePort = htons ...
by 8bit
Sun Jun 15, 2003 10:18 pm
Forum: Coding Questions
Topic: API calls
Replies: 16
Views: 4999

API calls

I am having trouble with the API Call "SetTcpEntry", For some reason, when ever call it, i get the error code 87, which is, The parameter is incorrect. I call it like this
Errorcode.l = SetTcpEntry_ (@TcpRow)
I just cant seem to figure out why its not working?!
Any help/ suggestions?
PS. I LOVE ...