|
You are asking for trouble if you want to add more than one resource file to your project. It's a bad idea to create a pool of resources, they will all be compiled into your exe bloating the size. Only include the resources you want to use.
If you are using the same resources in several projects, I advise you to create a resource only dll, and load that dll into each of your projects.
As for your name conflicts, you have assigned the same id to two icons. If you look in your #define files for the resources, find the #defines for the icons, and make sure they do not have the same number. Icons in particular are used outside your code, for example the icon show in 'explorer' is the icon with the lowest id, so it's not possible to have two icons with the same id.
|
|
|
|
|
Thanks for answer
But still i don't understand.
Yes It's a bad idea to create a pool of resources but i only want to test resources in vc++ ide.
So is assigning to same name to differnet resorces items normal?In my screenshot you can see ide assign items same name.But i think it must assign name by mixing with its resource file name.Right?
Also i said that:
wcex.lpszMenuName = MAKEINTRESOURCE(IDR_MENU1);
Now i select IDR_MENU1 also i can change this.So ı can use whaetever i want.We can bind resource to our class with these codes
Is this right?
If right. so ide must give differnet name for new added resouce items.
Can you please explain this for me.
|
|
|
|
|
I have win200box with vc6sp5, but i am not gettin compiled an application which uses Baloon Tools tips, the errors i am getting are like.
error C2039: 'szInfo' : is not a member of '_NOTIFYICONDATAA'
c:\program files\microsoft visual studio\vc98\include\shellapi.h(500) : see declaration of '_NOTIFYICONDATAA'
The dlls have been updated by service pack but not the header files, this is the main cause i think,
How to solve this issue?
Thanx In Advance
Z.A
|
|
|
|
|
|
error C2039: 'szInfo' : is not a member of '_NOTIFYICONDATAA'
c:\program files\microsoft visual studio\vc98\include\shellapi.h(500) : see declaration of '_NOTIFYICONDATAA'
error C2039: 'szInfoTitle' : is not a member of '_NOTIFYICONDATAA'
etc etc.
Z.A
|
|
|
|
|
I using in vs2003 without problem but see here[^] maybe it is some helpful to you
|
|
|
|
|
try adding #define _WIN32_IE 0x0500 to your stdafx.h header file, before you include any other headers. According to MSDN some members of the structure are only supported in version 5.0 and later of shell32.dll, but it doesn't say which members.
|
|
|
|
|
|
In that case you might want to open shellapi.h and check if there are any restrictions on using the structure.
|
|
|
|
|
Hi, im using vc++ 2005 express edition,
my application is win32 console application,i created new project in that with settings of "Empty Project" .
While i compiling my appli, it shows me the error as
d:\esim\lib\esimmain.cpp(84) : error C2664: 'MessageBoxW' : cannot convert parameter 2 from 'const char [31]' to 'LPCWSTR'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
the code which error shows:
MessageBox( hWnd, "Model DataBase Creation Failed in Debug Mode", "ERROR", MB_OK );
whatever i give in quoatations in the coding it shows me the same error.
Whats the reason?
Pls help me?
Anu
|
|
|
|
|
if you run this code whats hapenningMessageBox( hWnd, _T("Model DataBase Creation Failed in Debug Mode"), _T("ERROR"), MB_OK );
|
|
|
|
|
I coded like that but it shows the error as _T():Identifier is not found.
Anu
|
|
|
|
|
|
You are passing an ANSI string to a UNICODE function. Either switch to a MBCS build, or #include <tchar.h> and wrap your strings in the _T() macro as Whitesky suggested.
|
|
|
|
|
someone would tell me why when i add a combox control to a dialog recouse and enter some items in its data-property and press "Ctrl+T" to test the dialog but the combox showed nothing although u want to list its datas.
Thanks.
|
|
|
|
|
Hope I understood your question
when you press Ctrl+T it show dialog and values arent in combobox but i test and it work it show dialog and values in combo how to insert value to combox do you insert in property window ->Data
|
|
|
|
|
Yes,I did do it like you said. i insert values to combox in its property window ->Data. but the values couldn't appear when it was tested or run.
|
|
|
|
|
Except Ctrl+T When you run your program you cant see your data in Combobox
|
|
|
|
|
Hi,
I'm looking for a way to find the remote ip and port of a UDP packet being sent to a specific process (not my program).
I've looked at using the GetExtendedUdpTable() function on MSDN, but it will only return the local address of the UDP packet, which is useless given that i could work out the local IP easily.
I've also started to look at writing a TDI driver which would be able to return the remote IP address (at least i think it can) but i haven't seen any obvious way to connect this with a process ID. The TDI device driver tutorial here was useful, but it only seemed to show that you could use TDI instead of standard sockets. I've also read the stuff here on GetExtendedUdpTable (even if it was for c#) but as the function is limited as i mentioned before.
I know it is possible though, as a program called "TDImon" by sysinternals does it. Its closed source of course, so it doesn't really help me. It does give some clue of how it works in the help file, but i'm having enough trouble with the idea of developing a device driver, let alone making a connection between TDI and Winsock.
Quote:
TDImon gets its name from the fact that it monitors activity at the Transport Driver Interface (TDI) level of networking operations in the operating system kernel. This is the interface to protocol stacks such as TCP and UDP. Thus, the I/O activity shown by TDImon corresponds to TDI-formatted commands. Most TDI commands have direct correspondence with WinSock (the Windows socket API) functions, and thus are easy to interpret. For documentation on TDI and the commands shown in TDImon, please see the Windows NT or Windows 2000 DDK, available for free download from Microsoft’s web site.
So,
is there an easier way to do this?
Can someone please give me some pointers as where to look into TDI thats free and not the MS DDK?
Sample TDI code would be appreciated if someone has anything that will do something like what i'm looking for.
Thanks in advance
three_pineapples
p.s. In case it matters i'm developing on Windows XP SP2 using the Mingw C++ Compiler (which doesn't appear to have the GetExtendedUdpTable function, probably because the function is native to XP SP2 only).
|
|
|
|
|
Hi,
Iam using vc++ 2005 express edition ,whenever i compile my project it shows me the link error as
LNK1181:Cannot find input file ODBC32.lib
I downloaded ths from microsoft and also SDK.as per the instructions i chnaged everything?why its coming like this.
I need only Win32 Console application.
Pls help me out?
Anu
|
|
|
|
|
Is it available for linker?
|
|
|
|
|
Hi
i have written cose in vc++.now i want to integrate this code in c#.
plaese tell me the process to do so.
parshant
|
|
|
|
|
Hi all,
I am using EVC++ for developeing application on PocketPC.
I have make propertypage & initialize scroll bar in that.
But my OnInitDialog() method is not executed at all so my scrollbar is not initialize.
I have also take some reference project of this site.
regards,
Divyang Mithaiwala
|
|
|
|
|
I am trying to overload an assignment operator that that assigns an underlying type with the the assignment operator of the template's underlying class. It should be much simpler than creating the syntax of my opening sentence.
If anyone can tell me what the hell im doing wrong I would be much obliged.
template <typename T> T& operator=(T& t,const Object<T>& object);
template <typename T> class Object{
friend T& operator=(T& t,const Object<T>& object);
public:
Object();
//ommitted for brevity
protected:
Object<T>* m_daddy;
T m_data;
};
//----------------------------------FOLLOWING IS THE CPP FILE
#include "StdAfx.h"
#include ".\table.h"
template <typename T> T& operator=(T& t,const Object<T>& object){
t = object.m_data;
return t;
}
template <typename T> Object<T>::Object(){
//the constructor stuff goes here
}
I GET THE FOLLOWING ERROR
c:\Visual Studio Projects\Statistician Pro\Table.h(5): error C2801: 'operator =' must be a non-static member
|
|
|
|
|
Read your error message. operator= must be a member of the class, in this case Object .
|
|
|
|