|
Probably because you are statically linking to the C Runtime. There is an option there somewhere to not do that - so that it dynamically links.
Jon Humphreys
ActivePlanet Software
|
|
|
|
|
hi
i have to add some functionality in an already exsisting application which was made in VC++ 6. But the problem i am facing is, due to some setting in the already exsisting project, i am not able to see all methods/classess/objects in the intellisence. I can only see the project level classess/methods/objects. As i am a bigineer i am finding it difficult to program .. pls help
vikram
|
|
|
|
|
Deleting .ncb and rebuilding project solves problem sometimes.
|
|
|
|
|
thanks mate it .... worked...
vikram
|
|
|
|
|
Hi to all,
I have developed an exe in VC++ 2005 in Debug mode.
When I try to run it on other PC with having .Net installed alongwith all it's required dll's; It show an Error message "Falied to initialize the
exe.... Re-installing it may solve the problem."
Same error occurs for Release mode exe also, even I have installed "Visual C++ Redistributive dll" using 'vcredist_x86.exe'.
But when I install the 'Visual C++ Static Multi-Threaded CRT Libraries' OR 'Visaul C++ Dynamic CRT Libraries' from Visual Studio 2005 Setup CD, (on other PC) , my application runs properly but Visual Studio 2005 IDE is also get installed on other PC?
I have search from Google for solution, but in almost all site there are suggesting to run 'vcredist_x86.exe'.
I also tried to run my application by setting 'Émbed Manifest' property in code as 'No'. But them application fails to run PC having .Net installed.
Please Guide Me...
|
|
|
|
|
Installing the runtime dlls via vcredist_x86.exe will install and register all the runtime dlls on the target machine. With these dlls installed VC8 release build applications can be run on the target machine.
Are you linking to some other nonstandard dlls? Have you used the dependancy walker (depends.exe) to see which dlls the application is being linked to and comparing that list to which ones are missing from the target machine?
You may be right I may be crazy -- Billy Joel --
Within you lies the power for good, use it!!!
|
|
|
|
|
Hi!
I've got some cpp/h-files that I want to put into a MS VS .NET 2003 project so I can step through the program.
When I try to build I get strange errors and because of this I would rather want to build the project from the settings of the makefile that came along with the source files. This makefile is called "makefile" with no extension.
How do I make project from a file like this??
|
|
|
|
|
Hello all -
I need to implement a full featured auto complete combo box just like what it is in internet explorer. Thanks to a lot of help available on codeproject, I implemented the basic features. But there is one bug which is driving me mad.
The details:
I have handled CBN_EDITCHANGE message here. and I let it be handled by the parent also using the ON_CONTROL_REFLECT_EX method.
The idea is that I store the original combo entries in a vector. When user types in something, on edit change, I get the string, if it matches, I modify the comob entries with the search entries found (As i already have the original combo entries with me)
and then call the drop down method to show the search strings.
When user closes the dropdown or expands it, I restore the original state of the combo box. similarly when the search string is empty, i restore the state again.
Everything works fine, but when the dropdown is closed, and I try to enter a string, the combo box selects the first matched string in the combo (Which I do not want)
Whereas if I expand the combo box, the string is not selected.
I Guess this is too much. But still I hope someone has the answer.
Thanks in advance
Be the change you wish to see...
|
|
|
|
|
It seems more information is needed in order to answer this, since there is no specific question. You want to know why your code doesn't work but you haven't given us all the information required to answer it. Perhaps showing the code that is relevant will help us catch something.
|
|
|
|
|
Actually i am using ShellExecuteEx function in an Embeded VC++(MFC Based) to run other application whose window get minimized at startup.
i am trying to retrieve handle to an minimize application .Is there any function to do so ? I want to maximize this application by using ShowWindow(hwnd,SW_SHOW) function.
priyank
Software developer
Cyber G India Pvt Ltd.
priyank
|
|
|
|
|
You can use EnumWindow function (see MSDN). This way you'll get handles of all toplevel windows from your system. Now if you know some properties of the window you want to maximize(ex. windows name), you can easy find and maximize it.
|
|
|
|
|
|
Instead of using ShellExecute , use CreateProcess . You can then eaisly get a handle to the app you executed.
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
|
SHELLEXECUTEINFO structure contains a member variable hProcess contains a handle to the new started process, but you mast set fmask to SEE_MASK_NOCLOSEPROCESS. and it will be NULL if no process launched.
Hope this help you.
Programmer/ Eid Mahmoud Taha
|
|
|
|
|
|
pri_skit wrote: Actually i am using ShellExecuteEx function...
Can you use ShellExecuteEx() instead?
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Hello Everyone,
I am doing some looking-up of DNS information with the DnsQuery API function. I can recieve A, MX & SOA Fields perfectly from any given hostname.
When I call DnsQuery_A with a wType of DNS_TYPE_LOC, the call succeeds, but I have no way to get the information I need since the Data union in the DNS_RECORD structure returned by the call has no DNS_LOC_DATA structure defined. I have tried casting the union to a DNS_LOC_DATA but I get invalid data.
Could somone point me in the right direction, I have been searching around for most of the day and I can't find any examples of the DNS_LOC_DATA struct in use, and MSDN also doesn't provide any information that is of use.
Thanks For Any Help!
Robert Heffernan
Albury, NSW
My Code Requesting A Field Data
<br />
dsRet = DnsQuery_A(ndDns->cHostname, DNS_TYPE_A, DNS_QUERY_STANDARD, NULL, &drRecords, NULL);<br />
<br />
if(dsRet != NOERROR)<br />
return FALSE;<br />
<br />
My Code Requesting LOC Field Data
<br />
dsRet = DnsQuery_A(ndDns->cHostname, DNS_TYPE_LOC, DNS_QUERY_STANDARD, NULL, &drRecords, NULL);<br />
<br />
if(dsRet != NOERROR)<br />
return FALSE;<br />
<br />
dlLoc = (DNS_LOC_DATA *)&drRecords->Data;
|
|
|
|
|
hi,
I have got an IMDB(In Memory Database) file, and i want to read that data from that file and copy that into database SQL or file using c++. any help?
If this is not the correct forum to ask this question, then i am extremely sorry for that.
Warm Regards,
Mushq
|
|
|
|
|
You question is way too big to answer in a sentence or two. Break your problem up into several smaller ones. Which part are you needing help with?
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
In my Dialog (C++) application I kept getting an exception with the following code, define a strucure and creat a memebr variable of Type as per that stucture.
typedef struct <br />
{<br />
CString Name;<br />
CString rxChannel;<br />
CString txChannel;<br />
bool rxChannelDefined;<br />
bool txChannelDefined;<br />
}ACONFIGDATA;
But I got an exception (Bad Prt) when I did:-
m_As[Index].txChannel = chanData;
chanData is a CString.
However if I define the structure as follows:-
typedef struct <br />
{<br />
char Name[40];<br />
char rxChannel[3];<br />
char txChannel[3];<br />
bool rxChannelDefined;<br />
bool txChannelDefined;<br />
}ACONFIGDATA;
And use the following statement, all is fine.
strcpy_s(m_As[Index].txChannel, chanData);
I just want to understand how the exception was caused, please.
|
|
|
|
|
Can you show how you have declared m_As and using it ? Something other than metnioned code might cause problem ?
|
|
|
|
|
Declared as
ACONFIGDATA m_As[256];
But when inspected (via breakpoint) all the CStrings were Bad Prts
|
|
|
|
|
Code seems to be harmless, unless, you are accessing invalid index(out of bounds).
|
|
|
|
|
The index was in range so not that prblem.
|
|
|
|