Answer Questions
Satya vani Does VS2005 include Windows Installer?
Does VS2005 include Windows Installer If so, how do I run it to create an installation package for users to install or upgrade my products Have you looked at the documentation I think it is very easy to find the answer there. Simple Samples wrote: Note however that the VS 2005 local documentation is the same as the online documentation, or at least it is as far as I know. They are similar, but not exactly the same. You can tell this by searching for phrases in the on-line stuff in the local help files, and see that they're not found. Simple Samples wrote: It will probably help to spend some time becoming familiar with the documentation. I have spent a *lot* of time por ...Show All
Hoopla ASCII string to UNICODE string
Hi, I need to convert a simple word from ASCII to UNICODE. I am using VC++ 6.0 and was wondering if i can make it so that when I type "hello" the compiler will automatically change it into UNICODE, instead of having to use the MultibyteToWideChar() function. Also i am unsure how to use this function(how should i declare the buffer the converted string is stored in) Could someone please show me an example. Thanks daniboy120 wrote: Hi, [...] if i can make it so that when I type "hello" the compiler will automatically change it into UNICODE, instead of having to use the MultibyteToWideChar() function. [...] If you want to type "hello" into your program and ask the compiler ...Show All
baswegan2 VS .NET 2003 VC++: SP1 introduces a nasty compiler bug
The following code will reproduce a newly introduced (SP1) C1001 compile time bug. Enjoy! -HB ----------------------------------------------------------------------------------------------- // BugTest.cpp : The "nasty bug" revealing application. // // CL /Od /FD /MTd /W3 /nologo /c /Zi /Gd /TP <---FAILS // CL /Od /FD /MTd /W3 /nologo /c /Zi /Gd /TP /EHsc <---SUCCEEDS class IAnyInterface { }; template < class ObjectType> class TC { public : TC( const TC< ObjectType > &right) : data(right.data) {} ~TC() {} private : ObjectType data; }; class Buffer { public : explicit Buffer (TC< IAnyInterface> ifac ...Show All
bashok COM DLL, regsvr32 and manifest - blech!
I have a COM DLL that relies on MSVCR80.dll and when I try to register it with regsvr32.exe I get a "loadlibrary failed -2147220473" error. If I create a regsvr32.exe.manifest file and place it with regsvr32.exe, then it works. There has to be a better solution though. I can't count on target PCs having regsvr32.exe.manifest installed (and I'd rather not install it if possible). Done. OK tjhat's a different manifest issue. Only the manifest for the EXE can set the requestedExecutionLevel. This can't be done at the DLL AFAIK. Here's a manifest for this: < xml version = " 1.0 " encoding = " UTF-8 " standalone = " yes ...Show All
Andreia arraylist?
hi there. im not too sure of what is a arraylist. can anyone pls describe and show me some sample codings of how arraylist works. thank you. An ArrayList is simply a collection of objects of dynamic size. As you add objects to the array, it increases it's own size, and allows you to fit even more. You can access and otherwise process these objects in several ways, such as sort, search and iterate. The MSDN docs have got sample code for multiple languages: http://msdn2.microsoft.com/en-us/library/system.collections.arraylist.aspx ...Show All
huabing78 Converting ColorDialog Selected Color to Hexidecimal
How do I get the hexidecimal value of the color selected with the Color Dialog. I tried the ToArgb but its not giving me the proper color. When I choose red it gives me some dark color... Here's the code that I am trying... private : System::Void button41_Click(System::Object * sender, System::EventArgs * e) { ColorDialog *dlg = new ColorDialog(); if ( dlg->ShowDialog() == DialogResult::OK ) { int cl = dlg->Color::ToArgb(); String *temp = String::Concat(S"<html><body bgcolor=\"",cl.ToString(),"\"></body></html>"); FileStream* fsOutput = new FileStream (String::Concat(MyPath,"bgchange.htm"), FileMode::Create,FileAccess::Write); Stre ...Show All
Mel V Strange problem with a c file with subroutines
Hi everyone, I have a very weird problem with this program: with Visual C++ compiler it isn't compiled (the compiler says " missing ';' before 'type'" ) and with another IDE it works, but the return value is always 0.0. Could anyone help me Thanks #include <stdio.h> #include <stdlib.h> #include <math.h> int inCylinder_1( double , double , double ); double distance( double , double , double , double , double , double , double , double , double ); int main() { double x,y,z; printf( "%s" , "Insert point coordinates: " ); //scanf("%f%f%f",&x,&y,&z); x = 1.0 ; y = 1.5 ; z = 0.5 ; int inCylinder = inCyl ...Show All
tkroll Problems with Char*'s and LPCWSTR need help
I am trying to use the openregistrykeyex or openregistrykey function from the windows.h include file and I have the following code HKEY hKey = NULL; char * temp = "String" ; int len = strlen(temp) +1; wchar_t *wText = new wchar_t [len]; if ( wText == 0) return 0; memset(wText,0,len); ::MultiByteToWideChar(CP_ACP, NULL, temp2.c_str(), -1, wText,len); const wchar_t * test = wText; //long tempResult = RegOpenKey(HKEY_LOCAL_MACHINE, test, &hKey); long tempResult = RegOpenKeyEx(HKEY_LOCAL_MACHINE, test,0, KEY_READ, &hKey); Neither work and I can't understand the cryptic error codes if someone could help me unravel the error codes error code = Error 1 error LNK2028: ...Show All
Donaghy Visuelle C++ expresse edition and mysql data base with mysql seveur5
Hi freinds i use "visuel C++ epresse edition 2005", and i want to make one programme that can fill one data base especially Mysql. i setup mysql serveur5.0 but i have a problem to acesse to this data base .because i m beginner in this compiler. reamarque: i work under php and mysql. question: just give me a small exemple or turorial that help me to do this task thanx freinds. reagrds wisenet hello I found one simple sample online: http://www.tutorialized.com/tutorial/Connecting-to-mySQL-Database/376 I believe this is not the best one and there must be much more better examples available on the internet. If you are skilled with c++ language then it won't be an ...Show All
glasssd How to convert unsigned short[50] to CString?
How to convert unsigned short[50] to CString, the following is a example for this: TCHAR Key[50]; CString strParam1; strParam1 = Key; for the above statement, how to realize the data conversion in vc2005 Thanks you very much. CString and TCHAR will work as per your current build environment. I dont think a CString can't load a unicode string in UNICODE build environment Christian is right! But I wonder why you get problems with the shown code. If either UNICODE or not UNICODE is defined the assignment of a TCHAR array to a CString always work. What is the error of the compiler you get What version of MFC is this ( i.e. what compiler ). I thought later ones did this for you, CString is Unicode aware ...Show All
Steve Hanselman Every time while relocate : Add Files to Project
Hi, In our project there are many files I have to add from different directories. And that is working fine. But if I relocate that project folder then path of all the added files is changed. And I have to delete those files and add the same files again every time. Is there any way to give relative path to this files so if I change the location then I need not add all the files again. Thanks The files are always added using a relative path as long as this is possible (that is when the file you add is on the same drive as the project file). Note that even if you use relative paths you need to move both the project and the files and keep the same "relativeness" between them. ...Show All
SoulSolutions Is there any method to tell me one dll or lib is a user defined dll and lib or system lib and dll?
Is there any method to tell me one dll or lib is a user defined dll and lib or system lib and dll Thanks you very much. You might want to take a look at this thread . -hg ...Show All
Vijay Guru Prasadh WinHttpCrackURL and Encoding Chinese Characters
I am trying to use WinHttpCrackURL to parse a URL and ultimately send an URL request. Some of the URL addresses I am trying to process contain Chinese characters, but I cannot get the W inHttpCrackURL function to encode them. When I use the ICU_ESCAPE parameter the function returns an '87' for invalid parameter. Any suggestions would be greatly appreciated. Thank you. How about UrlEscape I'll try it, Thank you. ...Show All
Nayan Paregi Overriding default entry point
I have a project that has been ported from Studio .net 2003 to Studio .net 2005. IN the 2003 .net project I specified a different Entry Point via the linker->Advanced->options dialog. This allowed my code to gain control prior to the ctors or Global constructors running. This code is now broken in .net 2005. The global constructors are getting called before my entry point gains control. How do I get this to work in .net 2005. It is using the /clr:oldsyntax Is this a project that uses the /clr option Are you sure. I thought if you overrode the entry point then my code shold be called before the CRT ran. We have our own ...Show All
stenis Getting started with C++/CLI
Hi! I think the thread's subject is quite significant. I'm able to write native c++ code and now I want to start with C++/CLI. Do you have ideas where to start Do you know good tutorials (perhaps in German) I'm open for every suggestion which helps getting started with C++/CLI. Thank you Thank you! It's really useful. I wrote an article for MSDN a few years ago introducing C++/CLI. It was written before the new compiler was available in beta but most of it is still relevant and helpful when moving to C++/CLI. http://msdn.microsoft.com/library/default.asp url=/library/en-us/dnvs05/html/vs05cplus.asp My friend Nish also recently wrote a book on the topic: http://www.amazon.com/C++-CLI-Action-Nishant-Sivakumar/ ...Show All
