|
Well you can select the option for "Use MFC in a Static Library", but this would bloat the size of the exe.
On another note, For some applications you may need to have .NET or other dependent framework which you can mention in the prerequisites. Any problem with that?
One more thing, it's not about having VS installed. Installing the framework would suffice.
You need to google first, if you have "It's urgent please" mentioned in your question.
_AnShUmAn_
|
|
|
|
|
actually i m not working in .NET, rather i have developed in VC++6
|
|
|
|
|
you have the option of using MFC in static library in vs6.0
You need to google first, if you have "It's urgent please" mentioned in your question.
_AnShUmAn_
|
|
|
|
|
ok...thnx... i'll try it.
|
|
|
|
|
MahaKh wrote: i have developed in VC++6
My previous answer assumed you were using a recent compiler version. If you have developed your MFC application with VC6 then you may need to install the Visual C++ 6.0 run-time components on the client computer.
How to obtain the Visual C++ 6.0 run-time components[^]
Best Wishes,
-David Delaune
|
|
|
|
|
Use Dependency Walker[^] to determine the DLLs that your exe is dependent on, then distribute your EXE and those DLLs that aren't on the target machine so they can be copied into the same directory together.
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
|
Check to make sure you are using a Release build instead of a Debug build.
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
Hi to all,
I want to store a bigger number in vc++
What is the maximum possible value data structure?...is it long int?
If so please tell me how to check if it has reached the highest value, so that i can restart it from 0
something like
fn()
{
static long int count;
if()///reached maximum value
count = 0;
else
count++;
}
thanks in advance
|
|
|
|
|
If you use an unsigned number (and unsigned __int64 is the biggest you get in VC++), then it'll automatically wraparound to 0 if you try to increment it past its biggest value.
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
thanks
-----------------------------
I am a beginner
|
|
|
|
|
if unsigned DWORD64
if signed LONG64
|
|
|
|
|
Is there any way for a program to be able to determine what port a USB device is plugged into? Or at least to be able to determine that a USB device has been plugged into a different port from last time?
What about a filter driver? Does that know the port details?
|
|
|
|
|
|
Create a handler for the WM_DEVICECHANGE[^] message. You do not need to call RegisterDeviceNotification[^] to get notification for device insertion and removal.
Once you get a device insertion notification you can do a complete USB enumeration to check in which port your device is inserted.
Look at the USBView sample in the Windows Driver Kit (WDK) for enumerating USB devices.
«_Superman_»
I love work. It gives me something to do between weekends.
|
|
|
|
|
HI
i want to make the usb device read only
i already opened the handle for the usb device
now i need to send scsi command to usb device to make it read only
aftert that i will appy dacl to that
now i need to know which scsi command i need to pass to the usb device
and how can i pass that command to usb device using DeviceIoControl
i am using VC++ and visual studio 2005
thanks
Anil Veeraghattapu.
|
|
|
|
|
|
Hi,
Now i using the GetProfileStringW to read the values in registry. But before that i must manually create a registry key in regedit and give it a value. If not when run GetProfileStringW, the program will got error.So,is that any way or function can auto generate the registry key in MFC environment?
|
|
|
|
|
Use the registry APIs instead of GetProfileString.
Look at the documentation for Registry Functions[^].
For example, you can create/open registry keys using RegCreateKeyEx , you can read registry values using RegQueryValueEx etc.
«_Superman_»
I love work. It gives me something to do between weekends.
|
|
|
|
|
|
Hi All,
I need to implment a callback to a Nonstatic member function of a class.
Which will be invoked through a DLL.DLL is an independent library.No dependency with the class.
I Implemented with a static function. I need to know how it will be for a non static member function.
My code is as follows for static implementation. I need to change it for a non static .Please help.
class CCallbackTester
{
public:
static int __stdcall CompareInts(const byte* velem1, const byte* velem2);
};
int __stdcall CCallbackTester::CompareInts(const byte* velem1, const byte* velem2)
{
int elem1 = *(int*)velem1;
int elem2 = *(int*)velem2;
if(elem1 < elem2)
return -1;
if(elem1 > elem2)
return 1;
return 0;
}
int main(int argc, char* argv[])
{
int i;
int array[] = {22, 1, 3210, 2109, 1098};
Bubblesort((byte*)array, 5, sizeof(array[0]),
&CCallbackTester::CompareInts);
cout << "After the sorting\n";
for(i=0; i<5; i++)
cout << array[i] << '\n';
getch();
}
in DLL Bubblesort is as follows.
void DLLDIR CALLBACK Bubblesort(byte* array, int size, int elem_size, CompareFunction cmpFunc)
{
for(int i=0; i<size; i++)
{
for(int j=0; j<size-1; j++)
{
if(1 == (*cmpFunc)(array+j*elem_size, array+(j+1)*elem_size))
{
byte* temp = new byte[elem_size];
memcpy(temp, array+j*elem_size, elem_size);
memcpy(array+j*elem_size, array+(j+1)*elem_size, elem_size);
memcpy(array+(j+1)*elem_size, temp, elem_size);
delete [] temp;
}
}
}
}
Thanks
San
|
|
|
|
|
A non-static member function is very much dependent on its class.
So you cannot use it for callbacks.
«_Superman_»
I love work. It gives me something to do between weekends.
|
|
|
|
|
One way is to do this is like many callback procedures do - they pass along a user specified argument as a void pointer (PVOID). You can pass a pointer to one of your objects as the argument and use a static member of the same class for the callback procedure. Then in the callback procedure cast the void pointer to a pointer to your object and call your member method. As an example, your callback procedure could look something like this :
class YourClass
{
static int CompareCallback( ctchar * item1, ctchar * item2, void *ptr )
{
if( ! ptr )
return 0;
YourClass * pObject = (YourClass *)ptr;
return pObject->Compare( item1, item2 );
}
};
BTW : you can use this technique in a wide variety of callback scenarios like for thread procedures or window enumeration procedures or ...
|
|
|
|
|
Hello,
I have been working with the Watchport/V2 and Eyetoy webcams. All the reolutions and modes work fine with AmCap but I prefer the simplicity of StillCap for quick photos for a youngster's science project documentation.
The default resolution for StillCap seems to be 320x240 for images saved. I would prefer displaying and saving 640x480.
I used the Visual Studio 2003 Resource editor to increase the displayed size for the StillCap dialog box and the two webcam views.
I have poked around through the source code but cannot find where the camera resolution is set. How do I specify the webcam resolution to be 640x480, preferably as the default?
Thanx,
Tom
|
|
|
|
|
HI,
i have a TabCtrl which is created using Create function(using control variable) but not using resource...
Now how can i increase the font inside the TabCtrl
|
|
|
|