Answer Questions
MaxKam Event Handling with OpenMP
Hi everyone! I was recently developing an application that did some pretty extensive calculations, so to guarantee that the calculation would not interfere with the event-handling of my application, i parallelized the main-loop of the application with OpenMP: while(!done) //done can be set by the message-handler { volatile bool fin = false; //Input and calculation in parallel: #pra ...Show All
Ullas Report Designer
Anyone know how to get to the Report Designer in VS 2005 C++ Chicking on "Add" and "New Item" does not show a "Report" selection. DataSet is there and the ReportViewer is in the Toolbox. Am I missing something or have us C++ types been forgotten (again) What verson of the product are you using I see it under Visual C++ Data Report after I select "Add, New Item" Th ...Show All
Usman Sheikh message box
i have troubles with this code: #pragma once #include "gerenciamento_bb_mysql.h" using namespace System; using namespace System::ComponentModel; using namespace System::Collections; using namespace System::Windows::Forms; using namespace System::Data; using namespace System::Drawing; namespace form_050826 { /// <summary> /// Summary for interface_incluir_papel /// /// WARNING: If y ...Show All
fishinsea Application run event
Hello, I've got a question; Is it possible to have an event when another application whose name is known (for example: xen.exe) in a Windows::Forms .net 2 application in C++ 2005 beta 2 With Thanks, Gal Beniamini. As I understand you want your first application to receive a notification (event) when some another applica ...Show All
colecovizion C++/CLI code porting problem
I'm trying to port a C++.NET (managed extensions) application to C++/CLI. However I'm not very strong with the syntax yet. What I'm trying to do is to create a wrapper for a C Dll file. To do this I'm using DllImport but I failed to found documentation on it's use. There are some problems due to changes of the syntax but I couldn't find out why yet. The C++.NET line looks like this: [DllImport("my.dll", CharSet = Ansi, CallingConven ...Show All
AI Sam DLL Compatibility?
I am converting an app from vc6 to vc8 (vs2005). I've got everything to compile fine, and most of the testing looks good. While system testing in Release mode, I get an occasional crash. The dialog box says "PCSMain.exe has generated errors and will be closed by Windows. You will need to restart the program. An error log is being created". Even though I have drwtsn turned on, I don't see any error logs being created. Even while ...Show All
vinu Scanning a Database???
Okay, I am making a program with a login screen. The Username is stored in eUsername[9] and the password in ePassword . I want to check these against a file or better yet a database. How do I do that. The Win32 API only please, "the program is not to be written in Visual C++." Thank you in advance. I have two strings. And I have to make a program that silently opens a database ...Show All
dear_vvr Win64 gethostbyname() exception
Under Win64 (amd64) I'm doing the following system call: struct hostent *lpHost; if ((lpHost = gethostbyname(szHost)) == NULL) return false; When doing so everything goes fine but in the VS2005 debug "output" window I see the following silent exception: First-chance exception at 0x7d4e228c in mytest.exe: 0x000006C5: The tag is invalid. I have verified that the code is correct and that everything works as it's suppose ...Show All
drider linkLabel_LinkClicked
With managed C++ what would I have to type on this linkLabel_LinkClicked code in order to make my link go to a website of my choice #pragma endregion private : System::Void linkLabel1_LinkClicked(System::Object^ sender, System::Windows::Forms::LinkLabelLinkClickedEventArgs^ e) { } }; } If you have the PSDK installed and configured, you should have access to ShellExecute Oh, you don't have a plat ...Show All
Julian Mackintosh array of class objects
Hello all. I am new to C++ and I just have a couple questions. Im working on a version of the game of life which can be found here ... First off, I am reading a file which contains 1's and 0's, creating an object for each 1 or 0, and then putting all of the objects into an array. I think I have that working but this is where I am getting lost.. I already have a method from when I did this same project but didnt use objects (just the integers). I ...Show All
Danrikofer Find file without knowing its full name
Hi, I'm working in a directory and I have to see whether a certain file exists (and have to do this about every one or two seconds). However I do not know the full name of the file except for this: _vcr xxxxxx .tmp (where xxxxx stands for a 32-bits integer) I tried checking for it once by using a for loop with an int i=0 to 2^32 and once found by using PathFileExists(), I'd write down the name of the file so for every other ...Show All
amit.la Side by side problem
I recently upgraded from B1 to B2, and my console projects that link against msvcp80d.dll and msvcr80d.dll won't run. On the cmdline, I get: "The system cannot execute the specified program." In the IDE I get a dialog saying: "Unable to start program foo.exe. The application has failed to start because the application configuration is incorrect. Review the manifest file for possible errors. Reinstalling the application may fix ...Show All
ojohnson vector iterator in for loop gets compile error C2679
I'm fairly new to the STL, so I may be missing something obvious. I'm getting error C2679 on a for loop that uses an iterator for a vector that uses a pointer type. I use a similar for loop just above this one, which compiles fine. Here's a partial listing of the function: bool DEVGRP::ConnectToAudioServer( const CDMAudioServerInfo* pInfo ) { ... std::vector<LPVOID>::iterator iterate; DA56RpcClient* pClient; s ...Show All
SecurityBreaker how do i compare each character in a string with something
Hello. Please help me. How would I compare a character in a string with something. For example, I have the following string. "Hello, world!" And then I'd check if each character is == to ",". If it's right, I want to replace "," with "\n". How would I do this Thanks. Hi! C#: string.Replace(",", "\r\n") C++ .NET: I think the ...Show All
cwang733t Can not add control based variable in Add Variable wizard
I have a wierd problem. For some reason I am unable to add a member variable that is a control.. the check box is disabled when I click add variable. Some context here: I have a project that has a rc file included in the projects rc file. i.e. resource.h myprojectname.rc The commonresource.rc is included in the myprojectname.rc file. commonresource.h commonresource.rc Also the to prevent compliling the commonresource.rc we have ...Show All
