Answer Questions
ScottMFG Nameless namespaces in c++ 8.
I am recompiling a program with a nameless namespace using visual studio c++ 8. However, I get "error C2888: anonymous-namespace." Does anybody know if I have to set a switch on the compiler If so, which switch. If not, is this a bug If so, is there a fix for it Regards. PS - What I am trying to do is to declare internal linkage instead of external linkage. As per the standard: The new C++ Standard reads in "Section 7.3.1.1 Unname ...Show All
perfect13 How to highlight or sort Error in Ouput window
Hello, I'm working under VS2005, and I've many warning in old code. And it very difficulte to identify Error and Warning. How I can find quickly my error in this list I've a second question : VB, and C# language have refactoring tools, and code snippets manager. Why this tools don't exist in C++ think First Question: In a scenario similar to yours, I click on the Build output window so that it is ...Show All
MFaucett Code used to clear text boxes
im new to c++, and i would like to know the code that you need to use to clear text boxes. thanks.its a start.but now the problem i have is that the code that has been suggested does not work.keep getting a message saying 'Property Value is not Valid'. the code im trying is: textBox1->text = ""; anyone form 1 is the name of the actual window.i want to know how you clear the text box, not the form, by clicking o ...Show All
Paul Hammond Can I build STL program with only .Net framework SDK installed?
.Net framework SDK 2.0 beta2 is installed and I just want to build a simple c++ "hello world" program(without CLI features, fully ISO C++ program) #include <iostream> using namespace std; int main(int argc, char* argv[]) { cout << "Hello World!" << endl; return 0; } When using "cl helloworld.cpp" for building, the following EROR message displayed: helloworld.cpp(1) : fatal error C1083: C ...Show All
DannySmurf resource editor in Express Edition
In the betas of the express edition resource editing is not possible. Will it be possible in the final product I have found a resource editor called ResEd. You can download it from this page: http://radasm.visualassembler.com/projects/projects.html Hello, As it appears that no ressources editor will be made available in the final release of VC++2005 Express it would be ...Show All
vrok137 static data members and dll's
This should be trivial but has me foxed. c++ 2005 compiler /clr-pure Simple forms application with an additional dll such as user control. All I want to do is access an stl static data memeber of a ref class from outside a dll I have the following in the dll #ifndef KLUDGE3 #define KLUDGE3 #include <string> #include <map> #include <iostream> using namespa ...Show All
Franz Strele Function signatures - long vs. __int64 parameter types
I'm using the Visual Studio 2003 .NET C++ compiler to build a static library, which I am linking successfully to some other code. However, when I do the same on my home development machine, I experience some linker errors and unresolved references. Using 'dumpbin /SYMBOLS' I traced the discrepancy down to a difference in the parameter types of some function signatures. On my office environment, one of the functions in question generates the ...Show All
RichJ79 Post-build events in VC++ 2005 always running
Why are post-build events (Configuration properties - Build Events - Post Build Event) executed regardless of whether any build occurred in the main part of the build If nothing changed in the project, i.e. the main build never occurred because it was already up to date, a post-build event is still run. In VC 6.0 when the build was up to date, the post-build event did not run which is the behavior I desire. Should this be filed as a bug o ...Show All
Tom&#225;&#353; Pajonk linking C++ with mySQL
helo all, I don't know if that is the right place to post my comments, since the site is very large anway, how could I link C++ with MYSQL THanks all Thanks a lot guys! http://tangentsoft.net/mysql++/ But there are more connectors inclusive ODBC under http://dev.mysql.com/downloads/ too! Yes! If you have the correct library! Thanks also, guys, now I am in position to start linking C++ with SQ ...Show All
dparvin missing ';' before 'type', _CRT_SECURE_NO_DEPRECATE
My file is named "main.c" and in her is: #include <stdio.h> #include <limits.h> # define _CRT_SECURE_NO_DEPRECATE int main() { short h,m,s,h1,m1,s1; unsigned long n,temp1,temp2; printf( "Bitte Stunden eingeben im Bereich 0-23!\n" ); scanf( "%hd" ,&h); while (h<0 || h>23) { printf( "Falscher Wert fur Stunden!\nBitte Stunden erneut im Bereich 0-23 eingeben!\ ...Show All
Roberto79 program to convert and send voltage reading into digital data to be read by the computer using C++
Hi guys, really clued as to how I can write a program inorder to transmit a voltage reading from a multimeter over to the computer with everything connected via an PC30 I/O card, can any give me any ideas Hi, Go ahead and post the same question on public newsgroups microsoft.public.vc. This forums are primarily used to resolve programming issues with VS2003 and VS2005, but not for giving general advices on ...Show All
anderson andy Recommended Books
Some people have been recently asking about books for learning C++. Here is a link to a great site that reviews C++ books. This is the list of books that they recommended for learning C++ http://www.accu.org/bookreviews/public/reviews/0hr/beginner_s_c__.htm Hi, I need some materials of DOM, any suggestions I found a pretty good Internet site about CLR (common language resource). CLR looks like it's the future, so check it ou ...Show All
LukaSoFt How to convert CLR project to ActiveX
I've got a Windows Forms Application. I want to convert it to ActiveX. Is it possible How noppo wrote: Errr... How exactly should I do it Here are some articles :- http://www.codeproject.com/managedcpp/mfcdialogwinforms.asp http://msdn2.microsoft.com/en-us/library/ahdd1h97.aspx Errr... How exactly should I do it Gonna read these, thank you ...Show All
Neil K. Error in windows app. but not in console(same code)
A simple code: Code: #include <cstring> using namespace std; int main () { char str1[]="Sample string"; char str2[40]; char str3[40]; strcpy (str2,str1); strcpy (str3,"copy successful"); return 0; } if I open win32 project-> windows app.-> empty project and open a .cpp file and compile, it gives me this error: error LNK2019: unresolved external symbol _WinMain@16 referenced in function ___tmain ...Show All
CE31572 MSBuild in x64 environment with vcproj
Hello, With a quick search in the MSDN, I did not find the issue I am having. If this is already discussed, I apologize. I just got the latest VS2005, and tried to build 64 bit. It fails to build with MSbuild from command line. I have played just short time, and started with very basic. Still I am not successful. I am using VS2005 version is 8.0.50727.42 Here is the very basic scenario. I have created a new blank project "hello", my default ...Show All
