| |
| |
| |
|
Page: 1 2 3 4 5
Comments:
<0> the second one is how you use it in the exe <1> ok <1> done <1> result = j.SendOutput("eef") >>> compiler error , expected function or variable <2> Here's what you're going to have to do <2> in your DLL, reference MSCOmm <2> Keep a private variable that will hold the instance of the MSComm object <2> Provide an initialization routine to instantiate, and setup the MSComm object <2> Create a public property that will return the private instance variable <2> Provide a dispose routine to close the MSComm object, and set it to nothing and such <1> Teycho : kindly slow down <0> beginner123: read a tutorial about writing DLLs <0> beginner123: because you're either going to read a prewritten one, or you'll end up (maybe) receiving one from us anyway <1> on my dll , project / prefrences / Ms comm.ocx <<< so now i refrenced mscomm on my dll <1> Smirker : i dont know ...
<1> Teycho : how to keep private variable hold the instance of mscomm object ? <0> beginner123: www.google.com search for: vb6 dll tutorial <0> beginner123: read and learn. <1> ok <3> http://freelance-job.blogspot.com/2006/11/how-to-win-your-freelance-projects.html <4> freelance is for pansies <4> paidlance is far better <3> paidlance ? <0> lol <0> beginner123: don't private message me =\ <1> ok <1> Smirker : can u provide me a link for write basic dll ? <5> static blargh as string, this one can hold what 2^32? ~2 million/billion characters, yes? <6> about 2gb <6> (unicode) <5> mm <5> Iam trying to figure out why suddenly my packets ends up incomplete. <6> statics are inefficient too <5> An overflow of the string is not in the question. <5> Ok? <4> how do you know they're incomplete? <5> wsckbuff = wsckbuff & .GetData in _DataArrival <5> And each string I send, i end with a nifty control code, or whatever you wanna call it.. <5> It works. <5> But after a while I ends up getting corrupted packets when I am parsing them out from the buffer <5> I end each packet with chr(1) & chr(1) & chr(1) & vbCrlF.. Should be safe enough, since I only work with plain text. <5> All packets follow a nice structure of <Header>header stuff</header> <body>...</body> <5> When I start up my 3rd node (loop exists, but packets gets dropped when they should), I start to get incomplete packets. <5> Or they start in the middle and suc <5> h <6> u strip the 0x1 from wsckbuff before looking at it? <5> 0x1? <6> chr(1) <5> Ah, no. I simply check; instr(string,chr(1)*3) and if its exists, ret=left(string, the len(chr(1)) <5> Ah. <5> mm, like that. <5> Then right() to remove that part I just took out <1> Smirker : i seeked for a website talking about using the OCX on the DLL file , i faild on that , please guide me <5> bigAl, I will try to hard test my getdata func. <6> if this isnt streaming, why not include the length instead of a terminator <5> Wouldn't that be kinda the same thing? <5> And since the packets can get split, its not 100% sure the len value would always be complete and present. <6> just seems simpler if you know in advanve how much data ur gonna be getting <5> Harder the way I see it. <5> But still, either way works. <5> I tested now, inserting a string with 1000 packets, each ending with my control code. And then retrieved them one at a time. I got back 1000 strings. <5> So that part should be working. <5> humm... Cool <5> bah, nm <5> okey. <5> Well, the infinite loop problem should be one problem =) <5> Might be what starts it. And overflows something <4> packet splitting is entirely normal <4> i thought we'd discussed this? <5> Yeah <5> Yes <5> That part works. <5> But I see that the second I start up the 3rd node, tons of packets go round and round... Will have to fix that first. <5> My packet ID functions that are to remember each packet ID aint working it seems. <4> *shrug* <4> i have no idea how your handling system is designed
<4> which seems to be where the issue is <5> mm, I am looking into it now. <6> take the petty cash and fly to mexico! <1> Teycho : i reached good level , now i have only one error , which is when i type dim mycomm as test123.MscommCl*** , then set mycomm = new mscommcl*** << it gives me error type mismatch .. can u give a look into the code , i paste into the link nomorepasting ? <1> pasteID=74035 <4> how about = new test123.mscommcl***? <1> Doh_ : same error type mismatch error (13) <4> could be an error in the cl*** itself <2> Step through the code, including the code in the DLL and find exactly which line is erroring <4> if youre still developing your dll, add it to the project group <1> i cant find any problem into the code , kindly can you give a look into it ? pasteID=74036 <2> And likely neither will we. <2> STEP THROUGH IT <2> set a breakpoint, and execute every line of code individually <2> Find exactly which line of code breaks <4> i told you <4> the code error might be INSIDE CalTest123 or MSCommCl*** <4> and i told you to do test123.CalTest123 <4> if thats how you dimmed it <2> And how do we know what any of those variables are, without knowing the code in the cl***? <5> amagad!... Such a small typo, after fixing it, it seems to be working nice <4> jack*** <5> Indeed <4> JACK*** <2> that's it, BlackWand, your daily allotment of oxygen isbeing reduced. <5> meeeeeh <1> i give u the code of the cl*** i did a trace , i am doing hard ... still have the same problem i did what u told Doh_ i am still have the error i swear <5> Doh_, Yes, I deserve it. <4> beginner, how are you 'tracing' the code? <4> did youa dd the dll project to the project group so you can step right through the code? <1> this code available on a site friend bigAL gave me the site , and i download it from there , it works fine when i run it <2> That's great. but did not answer the question <1> guys i dont know how to add it into a group ... <2> Using code you do not understand is going to cause issues. Perhaps you should have looked into what the code is doing more, and looked up a few things? <2> A solution holds multiple projects <2> You have two projects, yes? <1> i looked at it .. i understood how the property of mscomm going on ... <2> The EXE and the DLL? <1> Teycho yes <2> Open the EXE project <1> opened <2> Then, goto File > Add Project, and add the DLL project <2> Now, both projects exist together <2> Reference the MSComm thing from the project, not from the actuall .dll FIle <2> That will allow you step through the code, line by line, in BOTH projects <2> There is an error in the DLL. Until you step through the code in the DLL you will not find the error. <1> it gives me the following error 'Caltest123' cant be public in this type of project , the item has been changed to private <4> you probably added the cl*** to the project <4> not adding the project to the project group <1> things are complicated . <2> Yes they are <2> That's called 'programming' <2> Do you know what a breakpoint is, and how to step through code one line at a time? <1> yes i know <2> Then use them in the DLL <2> Find out what error is occuring in the DLL <1> on the dll no issue ... it gives me everything working fine ... <4> how do you know? <4> just because there were no compiling errors doesn't mean there are no runtime errors <1> the yellow light p*** all the lines <1> Doh_ : i will start over <1> now i will start from the zero , 1- the file which i downloaded is an exe file , but it has cl*** named MScommCl*** .cls . 2- i will open a new project DLL active x , add file MscommCl***.cls to the project . <1> 3- i will make the dll . <4> no <4> dont make the dll <1> ok <4> wait <4> why do you need it in a dll? <1> ok <4> is there a specific reason/ <4> ? <1> Yes Doh_ , i need in dll , i want to use it on oracle form . as it is required by a customer. <5> 42 <1> can i now add it in the dll project ( new dll project ) ?
Return to
#vb or Go to some related
logs:
#india #kl kerim babacan chat en gaylima
#allnitecafe #allnitecafe #kl go to sleep b*** #chat-world malindo irc
|
|