|
udaybhaskar_nori wrote: What could be the reason? Are there any exceptions in using dialog code.
I have read some where you cannot run the Service in debug mode
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
Hi,
I have used the MFC Wizard to create a function such as this one, and it produced the following,
when I run the ActiveX it crashes the program, I had posted a similar problem before using variants and it fixed when Steve mentioned that a [out] is required in from of a pointer so I attempted it here and I got an error
Before Steve's fix
[id(10), helpstring("method testing")] void testing(BSTR * test );
After Steve's Fix
[id(10), helpstring("method testing")] void testing([out]BSTR * test );
This didnt do it for this case, I havent done anything else to the function, all I'm doing is assigning a fixed BSTR to the pointer, but even with this comment I get an error telling me that there is a type mismatch
Any help would be greatly appreciated
|
|
|
|
|
I want to build my project whose execute file (.exe) have an icon I chose. How could i do it ?
|
|
|
|
|
The first icon (lowest numbered identifier) in the resource section of your executable will be used as the application icon. Just add an icon to your project and give it the ID 1.
Ryan "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
|
|
|
|
|
Assuming you are using MFC, the ID of your application's icon will be IDR_MAINFRAME (i think.. check that). Now, import the icon you want and rename the ID of it to IDR_MAINFRAME (delete the previous icon before this or rename the ID of that to something else).
Regards,
Rajesh R. Subramanian
You have an apple and me too. We exchange those and We have an apple each.
You have an idea and me too. We exchange those and We have two ideas each.
|
|
|
|
|
No, im using raw api. That's the problem.
|
|
|
|
|
I assume that the program was created with the default MFC icon.
So just replace the icon file with one of your choice, and rebuild the resources. Simplest is to just rebuild the whole project. Then the new icon is used instead of the old one.
Shraddhan
|
|
|
|
|
What I want:
<br />
#define PACK_STRUCT_BEGIN #pragma pack(1)<br />
So I don't have to use #pragma explicitly.
Too many #pragma makes my code look ugly.
But compiler tells me it is a big mistake,and I don't know the reason.
Is it because #pragma is a compiling control word?
I expect an answer.
Appreciate.
Never understand
radical version!
|
|
|
|
|
You can't put preprocessor commands in a macro. Otherwise, the preprocessor would have to make multiple passes through the code, which it doesn't do. You'll have to use #pragma directly.
Ryan "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
|
|
|
|
|
Is there a max file name length for all files (to make sure a char buffer is always large enough)? I was assuming it was MAX_PATH but is that just for the path part and the fully qualified name can be longer?
- thanks.
|
|
|
|
|
Paths can be longer although most code assumes they can't. See here. Look for "\\?\".
Steve
-- modified at 19:58 Thursday 19th January, 2006
|
|
|
|
|
Thanks for the reply. However the link doesn't seem to work...
|
|
|
|
|
Oops. I fixed the link.
Steve
|
|
|
|
|
The maximum length used to be MAX_PATH (or whatever). Certainly on Windows 98.
For XP you should assume an indefinite length. Store the path in a CString and you'll be OK.
Shraddhan
|
|
|
|
|
I would like to create a framebuffer in various custom 16bit formats and then display this with win32.
How is this best done ? I really need a direct pointer to modify the pixel data in my own custom format.
Thx
|
|
|
|
|
I think using DirectX would be your best bet.
Steve
|
|
|
|
|
Do you happen to know where I can find specific sample code for this ?
Thx
|
|
|
|
|
Not off hand - But it's a popular subject. If you do a searce on Google and The Code Project you'll find lots of information.
Steve
|
|
|
|
|
hey guys, i need a litte bit help.
How to make that my app checks the windows-status of another app for example Iexplorer.exe.
I need to get results of iexplorer, is it infront(active; is it used right now?) of all applications or is it in the back(like minimized or something..
Thanks for your thinking
|
|
|
|
|
Are you looking for things like:
IsWindowEnabled()
IsWindowVisible()
IsIconic()
GetTopWindow() (compare return value to IE's window handle)
"The words of God are not like the oak leaf which dies and falls to the earth, but like the pine tree which stays green forever." - Native American Proverb
|
|
|
|
|
hey thanks, I dont know how to use is but sounds good, ill try
|
|
|
|
|
Hallo.
I've created an activeX control, now I need to put this control on a dialog. It seem's easy, but I need to creat a dll library where are two functions Start(CRect rect,CWnd pParentWnd) and CloseShow(). A dialog has a button and when you click it it calls Start(CRect,CWnd). I've spent a lot of on that. Help me if you can.
|
|
|
|
|
How you host an ActiveX control would depend on when libraries you're using - ATL, MFC, etc.
Steve
|
|
|
|
|
|
In MSVC6:
1. "Project->Add To Project->Components and Controls..."
2. Open "Registered ActiveX Controls" folder.
3. Pick control.
4. Click "Insert".
5. Press "OK".
6. Press "Close".
An icon for the new control will appear on the dialog editors controls toolbar. Proceed as you would for other dialog controls.
Steve
|
|
|
|