|
Hi All !!
I have developed an application say "MyApp" using visual studio 2005, in VC++.
When i build the application i get an icon with name "MyApp.exe" in the debug folder of the application.
so if i want to run in some other computer other than where i developed i just click this icon "MyApp.exe" for the execution of my application.
Now there can be two types of Computers where i can execute my application
1. A Computer system where Visual Studio 2005 is installed :: Here i donot have any problem to run my application
2. A Computer System where visual studio is not installed ::
So what are the minimum requirements of such systems (where there is no visual studio installed) in which my application can run successfully without any failure (i want to run my application just by clicking "MyApp.exe" icon ?
|
|
|
|
|
This minimum depends to minimum of your program and what dlls are used with your program
|
|
|
|
|
|
kapardhi wrote: 2. A Computer System where visual studio is not installed ::
So what are the minimum requirements of such systems (where there is no visual studio installed) in which my application can run successfully without any failure (i want to run my application just by clicking "MyApp.exe" icon ?
You must install the Visual C++ 2005 Redistributable package[^] on the target computers.
You can legally include this with your program installation.
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
And distribute the release version of the program
|
|
|
|
|
No, there is no need to install VS 2005 on target machine.
Just build your solution in Release mode and you can find a Release folder which will contain exe for same (of course you will see it's icon).
Mostly if it MFC application then there is no any problem to run on platforms above windows 2000/NT/XP and above.
If some dependencies are there then you will required to install extra runtime for that for example DirectX 9.0c. In this case developer should have DirectX 9.0 SDK and the user's machine should have DirectX 9.0c runtime installed on it.
You can see such example when you install any 3D game which requires DirectX 9.0, then this the dependency for that application.
|
|
|
|
|
maheshbhoir.home wrote: No, there is no need to install VS 2005 on target machine.
No, but you need to install the redistributable package (see Rajesh's post). The only way to avoid this is to build everything statically (so link statically to the C run-time and MFC libraries).
|
|
|
|
|
I did it as below, any more efficient way?
std::wstring s(L"abc");
CString t(s.c_str());
VARIANT var;
var.vt=VT_BSTR
var.bstrVal=t.AllocSysString();
|
|
|
|
|
var.bstrVal = SysAllocString(s.c_str());
|
|
|
|
|
|
Hello,
I am trying to create a bluetooth socket on wince device(HP iPAQ). the code is given below ..
SOCKET s;
WSADATA wsaData;
int iRet = 0;
iRet = WSAStartup(MAKEWORD(2, 2), &wsaData);
s = socket(AF_BT, SOCK_STREAM, BTHPROTO_RFCOMM);
if(s == INVALID_SOCKET)
{
iRet = WSAGetLastError();
}
WSACleanup();
here creation is getting failed.The return error code is 10047(Address family not supported by protocol family). In my device the bluetooth is turn ON. Can any body help me why i am not able to creat bluetooth socket. please help me.
Thanks and regards,
Yudhisthira Attry
|
|
|
|
|
VARIANT test()
{
SAFEARRAYBOUND rgsabound[1];
rgsabound[0].lLbound=0;
rgsabound[0].cElements=2;
SAFEARRAY * psa=SafeArrayCreate(VT_I4,1,rgsabound);
VARIANT var;
var.vt=VT_ARRAY|VT_I4;
var.parray=psa;
return var;
}
int main()
{
VARIANT var=test();
}
I there are other errors in the code, please tell me, thanks.
|
|
|
|
|
Hello followait,
No a VARIANT will not automatically free its contents. To do so, either manually free the SAFEARRAY by yourself or call VariantClear().
- Bio.
|
|
|
|
|
followait wrote: //Do I need to free var.parray here?
That depends. Do you still need access to var before main() ends? Otherwise, if main() ends, then the memory will be automatically freed.
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
|
|
|
|
|
I have a project here at my work due Monday and it involves 23,000+
records to be manually typed into a database requiring the fields LEN:, DN:, and the NCOS: on the same line. I just know that there is an easier way of doing it. I have been working with the sed utility in Linux to help me but now I would like to know how to write an Win32 executable that can ask for the file name and filter these values for me and insert them into a text file. I have a fair amount of C++ programming experience but I do not know how to using file streams. Any help would be greatly appreciated by myself and my coworkers. A sample of a record I have is:
MADN SPECIFIED. LEN OUTPUT IS FOR PRIMARY.
-------------------------------------------------
LEN: HOST 02 0 02 11
TYPE: MULTIPLE APPEARANCE DIRECTORY NUMBER
SNPA: 315
DIRECTORY NUMBER: 6344010 (NON-UNIQUE)
LINE CLASS CODE: IBN
CUSTGRP: KAFB SUBGRP: 0 NCOS: 52
Here is a link to a thread where I was using sed:
http://www.linuxquestions.org/questions/linux-software-2/using-sed-to-extract-a-pattern-plus-a-number-of-positions-after-679435/
|
|
|
|
|
Michael Randolph wrote: MADN SPECIFIED. LEN OUTPUT IS FOR PRIMARY.
-------------------------------------------------
Do these two lines appears once at the top of the file?
Michael Randolph wrote: LEN: HOST 02 0 02 11
TYPE: MULTIPLE APPEARANCE DIRECTORY NUMBER
SNPA: 315
DIRECTORY NUMBER: 6344010 (NON-UNIQUE)
LINE CLASS CODE: IBN
CUSTGRP: KAFB SUBGRP: 0 NCOS: 52
Do these 6 lines repeat (for each record)?
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
|
|
|
|
|
Yes if you check out this link there is more info on what I'm trying to do..... http://www.codeguru.com/forum/showthread.php?t=464131
|
|
|
|
|
I see some inconsistency. Are the rows of dashes used to separate records, and are there always two rows of them? How many rows are there between OPTIONS: and the first row of dashes? Are the two rows starting with MADN: optional? Can you provide 1-3 more records so that a pattern is more evident?
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
|
|
|
|
|
I am currently writing a program using C++ and MFC. I am thinking that my users would like to see their output saved in a PDF file. The output will contain at least one graph (as in X - Y plot). Are there any class libraries that will help me produce this PDF output?
Thanks
Bob
|
|
|
|
|
|
Let me rephrase, where can I find a C++ class library that I can use in my program. Ideally, the price of the library should be free?
Thanks
Bob
|
|
|
|
|
Sorry Bob. I should have slept last night.
Ehrm, do you need a c++ class-lib, or will you settle for a non class-oriented implementation?
I suppose you've already seen this page: http://www.adobe.com/devnet/pdf/library/[^]
How about pango, have you considered that? I'm under the impression that it's not always so fun to build - though I can confirm having made a program using it, that gets the time and then draws an analogue clock as the only object in the pdf.
Ahrm, are you adverse to reverse-engineering? You could always grab a c# library, then pull it apart with .NET Reflector and Deblector & Reflexil, before putting it back together with a C++.
Then of course, there's always the list of 340 articles at CP. Dunno if/which of them are any good.
http://www.codeproject.com/info/search.aspx?artkw=PDF[^]
|
|
|
|
|
Thanks for the response. As I understand it, the Adobe library is expensive. I am looking for something that is free. Maybe that is unrealistic on my part. Also, I would rather not reverse engineer another library. For the application I am working on, I believe, PDF output is not that important.
Bob
|
|
|
|
|
I have just recently (only two days) been on the MASM32 forum and I thought that I saw a free application that created PDF (still need Adobe to read it).
Dave.
|
|
|
|
|