|
Okay, but would i have to create an array of HINSTANCE object variables or an array of HWND object variables, by the way, the win32 API is being used to do this, as for the GDI+ thingamajig, where can i download the sdk?
|
|
|
|
|
how to make spin control range can be change by user???
for example:
a dialog box application with spin cotrol an static text for info the value of spin control. spin control range is 0 to 50. then user click a button to open a dialog box, then enter a value ... expl 60, then click OK, now spin control range is from 0 to 60.
for simple
m_abc.SetRange( x, y) <-- how to make x and y variable??
|
|
|
|
|
|
Anyone know how to send an attachment with WinHTTP?
ed
~"Watch your thoughts; they become your words. Watch your words they become your actions.
Watch your actions; they become your habits. Watch your habits; they become your character.
Watch your character; it becomes your destiny."
-Frank Outlaw.
|
|
|
|
|
Ed K wrote:
Anyone know how to send an attachment with WinHTTP?
Use POST method to send Attachment!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
|
|
|
|
|
Ed K wrote:
Anyone know how to send an attachment with WinHTTP?
Have Look at this article, it POST file using WinHTTP
http://www.codeproject.com/internet/w3client.asp[^]
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
|
|
|
|
|
How can I create an instance of a remote COM object if I only know the Application ID of the object and the server it exists on. In other words, how would I go about doing something similar to the VB command:
<br />
Dim O As Object<br />
Set O = CreateObject("App.Object", "REMOTE_SERVER")<br />
Kyosa Jamie Nordmeyer - Taekwondo Yi (2nd) Dan
Portland, Oregon, USA
|
|
|
|
|
I'm thinking this falls under DCOM or Remote Automation.
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
|
|
|
|
|
Look into the function CoCreateInstanceEx . It has a serverInfo parameter (of type COSERVERINFO )
|
|
|
|
|
Yeah, I happened across that one. Any idea where I might find a good example of calling it? I've been programming C# for so long now that my COM programming has gotten EXTREMELY rusty...
Kyosa Jamie Nordmeyer - Taekwondo Yi (2nd) Dan
Portland, Oregon, USA
|
|
|
|
|
|
I tried those before I posted here, but really couldn't find any good examples, thus my post here...
Kyosa Jamie Nordmeyer - Taekwondo Yi (2nd) Dan
Portland, Oregon, USA
|
|
|
|
|
|
Hi,
I am trying to make a CDialog dock to the desktop. I want to have actually the same behaviour as MirandaIM/trillian when one moves the dialog to one of the sides of the desktop (the dialog extends to occupy the vertical desktop space, all other windows and icons on the desktop will move to clear that area).
If you have any idea how it's done, please enlighten me
Thanks,
florin
|
|
|
|
|
|
Actually I don't to make the dialog part of the taskbar, just the ability to "stick" it to the desktop side and extend it to ocupy that side of the desktop.
|
|
|
|
|
See WM_MOVING - write a handler for this message to force the window to any location on the desktop.
/ravi
My new year's resolution: 2048 x 1536
Home | Articles | Freeware | Music
ravib@ravib.com
|
|
|
|
|
Hello,
I have been looking at a 2D ActiveX Control that was posted some time ago as part of this forum. Link should be below. I want to have a good understand of just how the code for the control operates. Can anyone give me a brief overview of how code works, etc? Apparently all the code is downloadable...so maybe I can step through some of the code in debug mode.
http://www.codeproject.com/miscctrl/ntgraph_activex.asp
Thanks.
Jerry
|
|
|
|
|
Why don't you ask on the forum of the article itself ?? The author of the article will surely know much better how its control works than us.
|
|
|
|
|
Hallo guys,
i have a library file (done for c) which works perfectly with vc++ console application. but when i do the same thing with mfc project it doesnt work. I there any thing to do for piping or please help me in this regard-
thank you guys in advance
kingsly
|
|
|
|
|
I can't help you if you don't describe what exactly the problem is. Is it compiling, c++ runtime errors, exceptions, or whatever?
Don't try it, just do it!
|
|
|
|
|
Alexander is correct!
Basicaly, C/C++ standard I/O is designed for console programs (the least common denometer).
Piping? No, piping just makes the output an argument to another program (there is no interaction, just display of results).
1) Is it a text only console application?
In that case it is not diffacult, provided you have the library code. What I am reffering to is the parts that provide input/output, the rest does not matter.
For instance, replace all the printf() functions with sprintf() to store the output in at C-String then use a windows text output functions to display it in a window (there is no window output function equivalent to printf()). If it just takes some input on the command line (normaly) and outputs it to the screen, then no problem (an edit control will work).
If it requires interaction from the user (input),
I would consider popping up a dialogbox to ask for the additional input (that way you can still output the text to the same edit control).
2) If it has its' own windowing interface, well you'll just have to figure out how to rewrite the interface under windows (or MFC).
3) If you don't have the source code and you have no control over the I/O, then you are in deep sh** and can do nothing but rewite the libraray.
Good Luck!
INTP
"The more help VB provides VB programmers, the more miserable your life as a C++ programmer becomes."
Andrew W. Troelsen
|
|
|
|
|
First of all, thanks a lot for both of u. Its GPIB card communication to an amplifier to set the values for it and recieve the values also. with GPIB , i hav e c library through i communicate.. it has lik iprintf,iscanf for setting the values and normal printf for displaying the output in the console window... it works ... but i put the same commands like iprintf, iscanf in a button event and retrive in edit box it doesnt work...
So please help me in this regard..
|
|
|
|
|
Oh man! If the C-library is designed to talk to the hardware directly, you may have a major problem! What I mean is that any modern system, based on NT or above (NT/Win2000/XP), will probably refuse to allow you direct access to the hardware (for security reasons). That means, you need a hardware driver (or to create one).
Google: "name of your library", iprintf, iscanf.
Maybe you will find something useful.
I Reccomend searching to a new GBIB library.
INTP
"The more help VB provides VB programmers, the more miserable your life as a C++ programmer becomes."
Andrew W. Troelsen
|
|
|
|
|
I'm using Visual Studio .Net to create C++ and ATL dll projects. We have a LARGE dll library, and I do not want to set the resource dll version info for each one.
Does anyone know of a way to override the dll version info that's compiled into the DLLs resources? I would like each DLL to return a common set of information (company name, copyright, etc.). Is there an override or callback that I can use to set that information at runtime?
Thanks,
Aaron Stibich
Innovative Technologies Inc.
|
|
|
|