|
MohammadAmiry wrote: When I add #include<afx.h> the following error occurs.
Include afxwin.h and remove afx.h and windows.h.
|
|
|
|
|
now the following errors occur:
Compiling...
StdAfx.cpp
Compiling...
Macro2.cpp
Linking...
nafxcwd.lib(dllmodul.obj) : error LNK2005: _DllMain@12 already defined in Macro2.obj
nafxcwd.lib(dllmodul.obj) : warning LNK4006: _DllMain@12 already defined in Macro2.obj; second definition ignored
Creating library Debug/Macro2.lib and object Debug/Macro2.exp
Debug/Macro2.dll : fatal error LNK1169: one or more multiply defined symbols found
Error executing link.exe.
Creating browse info file...
Macro2.dll - 2 error(s), 1 warning(s)
|
|
|
|
|
|
Please refer this[^]
Regards,
Paresh.
|
|
|
|
|
I am working on implementing a CListCtrl derived class that functions similar to a control bar. Each icon functions like a button, icon only with no text assigned, and the layout (# of rows/columns) is adjusted as the size of the control changes. All the icons are displayed packed together with a single pixel separating them vertically and horizontally. I have just about everything working, but have run into one problem I cannot find a solution for. When there are multiple rows displayed in the control, even though no text is displayed for any icon, space for the text is being calculated. Clicking on an icon in a row other than the top row results in the icon in the row above being selected - if the click happens in the space where the text of the upper item would appear, if there were any. To put it another way, the space where text would appear for icon in Row A overhangs the icons in Row B. Clicking in this 'overhang' space results in the icon in Row A being selected, while visually it appears that the click happened well within Row B.
Any ideas on how to make the list control not calculate the space for the text label?
|
|
|
|
|
You may want to look into handling WM_MEASUREITEM . See this[^] article.
/ravi
|
|
|
|
|
In my application,I have access modeless property sheet from dll. In this, propertypage's "pretranslatemessage" not called.
Ex:
Exe <============ Dll
(Application) (Propertysheet and pages)
thanks in advance.
Sakthivel
|
|
|
|
|
Is there a specific question you wish to ask?
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Yes, David.
I need to access the "pretranslatemessage", in modeless propertysheet, so for any setting or else to do.
Thanks,
Sakthivel
|
|
|
|
|
So what's the problem? Is your ClassWizard broken?
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
My propertysheet has 5 pages, each page has it's own pretranslatemessage. but page pretranslatemessage not work and "tap key" not work(for switch the control).?
so how to access pretranslatemessage.?
|
|
|
|
|
If you are using MFC, is each dialog's BEGIN_MESSAGE_MAP() correct?
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
I'm trying for automatic documentation in MS powerpoint.I'm using MS wrapper classes associated with "msppt9.h".I've inserted pictures.Now using shape.AddTable,I've inserted table with 14 rows and 4 cols.I can't reduce the size of the table.I can't insert text in the table also.
Please help me.
|
|
|
|
|
i'd suggest you attacked the problem from the scripting side of Powerpoint
i.e. write powerpoint scripts inside powerpoint to do what you want first.
bryce
|
|
|
|
|
How I can write?Any link is there for start?
|
|
|
|
|
Hello, I want to write an ISAPI extension dll using MFC (in Visual Studio 2005). every book I read, said we should create an MFC ISAPI Server extension project from File->New menu. but my Visual studio has not this template. what should I do?
please help.
|
|
|
|
|
Ali Tavakol wrote: but my Visual studio
And what version is that?
led mike
|
|
|
|
|
|
hi i used GetAdaptersInfo to get the adapters information. the problem is i cant get the LAN adapter correctly. for wireless the adapter description will be "wireless network" but for LAN i cant get the local area correctly. how to get this information
Arise Awake Stop Not Till ur Goal is Reached.
|
|
|
|
|
deeps_cute wrote: i cant get the LAN adapter correctly
What do you get? What information do you expect to get?
"If you can dodge a wrench, you can dodge a ball."
|
|
|
|
|
You may want to look into using WMI to get more information about installed adapters.
The Win32_NetworkAdapter class is a good keyword to search on
Here's an article: Getting the network adaptor MAC address with WMI[^]
Mark
"If you can dodge a wrench, you can dodge a ball."
|
|
|
|
|
how to get the netconnection id. i need to get all the adapters id
Arise Awake Stop Not Till ur Goal is Reached.
|
|
|
|
|
It's the NetConnectionID member of the Win32_NetworkAdapter WMI class.
Mark
"If you can dodge a wrench, you can dodge a ball."
|
|
|
|
|
Hi,
I made an app with an ok and cancel button in visual studio c++ 2005, but they are blocky (old look). How can I enable the XP look and feel so these buttons look nice? My computer is running XP.
Thanks,
Max
|
|
|
|
|
Probably the easiest way is to open the stdafx.h file and near the bottom, you'll find an
#ifdef _UNICODE
...
...
#endif
Remove the #ifdef and #endif lines (leave the others). This will enable the manifest which will give you the new look.
Hope that helps.
Karl - WK5M
PP-ASEL-IA (N43CS)
PGP Key: 0xDB02E193
PGP Key Fingerprint: 8F06 5A2E 2735 892B 821C 871A 0411 94EA DB02 E193
|
|
|
|