|
Mark Salsbery wrote: This
typedef UCHAR (__cdecl *RESPONSE_FUNC)(UCHAR eventID);
should be
typedef UCHAR (__stdcall *RESPONSE_FUNC)(UCHAR eventID);
It's a third party library, I'm not able to change it
And yes, I'm sure the buffer is bigh enough... it should be 3 bytes, I'm passing 10
|
|
|
|
|
Paolo Vernazza wrote: I'm not able to change it
Oops, sorry.
On the C# side...
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
delegate bool RESPONSE_FUNC(byte eventID);
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
|
hi evryone
how can i send text from my C# program to external program ?
i need to send text where the cursor is at this moment
than'k alot for any help
|
|
|
|
|
What do you mean by sending text? If you want to send a message you can P/Invoke SendMessage() function. If you mean interprocess communication, than you can use pipes or remoting.
|
|
|
|
|
i'll try to explane
i have my program, i need to send text from my program to any open
program (word for example) where the cursor is blinking
how can i send my text to external open program in the cursor position
than'k alot
|
|
|
|
|
|
Process.StandardInput -> MSDN
|
|
|
|
|
Haha! Yeah, I like that one! Process.StandardInput -> MSDN
Nice...
|
|
|
|
|
what's the different when we run an application with .exe file and debug mode?
thanks
|
|
|
|
|
That's a very wide question. Are you looking for the internals of how the debugger hooks up the executable, the difference in performance for the application or what you do to accomplish debugging?
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
i meant the difference in performance?
Do they give the same errors?....
|
|
|
|
|
Code compiled in debug mode contains a lot of extra NOP (no operation) instructions, so that there is always at least one instruction per source code line, in order for the debugger to be able to place a breakpoint on any line.
The compiler doesn't optimize the code by rearranging any instructions when compiling for debug mode, so that the compiled code exactly resembles the source code, in order to be able to single step through the code.
Exceptions takes a lot more time to handle when the code runs in debug mode.
The garbage collector works differently in debug mode, expanding the usage of variables to their entire scope, so that you can view the values of the variables in the debugger as long as they are in scope, even if the object is actually unused and could have been collected.
As the compiled code differs slightly, any race conditions or other timing problems that exist in your code may only occur in debug mode or only in release mode.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
Hi..
How to find parent's child in matrix (in maze)?
please more describtion for me...!
thanks..
|
|
|
|
|
What the hell are you talking about ?
Christian Graus
Driven to the arms of OSX by Vista.
"Iam doing the browsing center project in vb.net using c# coding" - this is why I don't answer questions much anymore. Oh, and Microsoft doesn't want me to.
|
|
|
|
|
Maybe, just maybe, we'll know when some one adds more describtion...
Anyway parents dropping their children into a maze seems a tad irresponsible to me.
|
|
|
|
|
sitnet wrote: How to find parent's child in matrix (in maze)?
please more describtion for me...!
Electronic tagging would be a good start, or possibly a really long lead with a motorised winder to reel that kid right back in.
|
|
|
|
|
|
I'm playing with my first C# application and have a few questions about style. Bear with me here; I've been programming about 100 years, but I'm fairly new to the Windows environment, and a total newbie in C#.
I'm working on an app that is intended to allow unskilled people to enter information about electrical substations. The four functions to be supported are: entering the equipment readings for several classes of equipment each month, recording services performed on the equipment, recording the movement of equipment within substations and inventory, and managing inventory. I've built Windows Forms for each of the basic functions, but now wonder how to proceed.
My first thought was to create a sequence of dialogs launched from each major function page to collect data and post it to a database. Then it occured to me that I might also embed data collection forms into the main pages and play with the visibility of each as I walked the user through the steps. Another option would be to create individual forms for each step and just overlay them as the user navigates through the steps. I'm trying to create a uniform appearance so as to make the app friendly to people who don't like to use computers, but since I'm new to the language and environment, I'd also like to save myself a lot of unnecessary pain. I don't want to lock myself into a solution that will require advanced knowledge of the language that I lack.
What would you recommend? Any suggestions would be appreciated...
"A Journey of a Thousand Rest Stops Begins with a Single Movement"
|
|
|
|
|
How about TabPages, one for each type of action?
|
|
|
|
|
Hmmm.... I never even looked at that. It sounds complicated, though, and this is a first project in a new language. I'm not sure I'm up to that yet. I'm trying to get the look and feel of a web page, because while the users are fairly good at surfing the 'net for naughty pictures, they'd be totally stumped trying to use Quicken. Building a whole slew of forms with a common appearance seems one obvious way, but though I can figure out how to load a new page, I haven't found an unload function yet. Back to MSDN for ideas then...
Thanks for the suggestion.
"A Journey of a Thousand Rest Stops Begins with a Single Movement"
|
|
|
|
|
You might want to consider the MS CAB.
|
|
|
|
|
I don't know what that means...
I'm fairly sure I can't afford a taxi to Redmond, though...
"A Journey of a Thousand Rest Stops Begins with a Single Movement"
|
|
|
|
|
|
Thanks, Mark! That looks interesting, though a bit beyond my skill level. I'll give it a look after work.
"A Journey of a Thousand Rest Stops Begins with a Single Movement"
|
|
|
|