Answer Questions
JeffreyKey Project creation failed?!
I just Visual Studio 2005 Standard edition and I'm trying to learn C++.. when I try to create an MFC application, I try to set the Base Class under Generated Classes so I can visually design the form... however the second I click on the dropdown menu, the dialog immediately closes (the list of items in the dropdown doesn't even appear) and the status bar says "Creating project 'MFCTest'... project creation failed." No error message, no ...Show All
Ronen Y specstrings.h / sal.h
XPSP2 PSDK specstrings.h appears to conflict with VC sal.h Numerous warnings of type; c:\program files\microsoft platform sdk for windows xp sp2\include\specstrings.h(334) : warning C4005: '__reserved' : macro redefinition c:\program files\microsoft visual studio 8\vc\include\sal.h(672) : see previous definition of '__reserved' c:\program files\microsoft platform sdk for windows xp sp2\include\specstrings.h(341) : warning C4005: '__checkRetur ...Show All
Firobo Do Windows 2000 and 2003 block direct acces to serial port?
Hi, I'm developing a MFC DLL to be the bridge between a Visual Basic 6 application and a industrial machine. The VB6 app calls some functions in my DLL that makes direct access to the serial port (without using APIs or components). My friend told me that Windows 2000 and 2003 blocks direct access to serial port. Is this right How can I do to allow my DLL to access serial port Another question, is there any easier way to test if my VB ...Show All
jphamel - Totaly Visual C++ Newbie, Please Help -
Hi Guys, I’m totaly new to Visual C++ ... and I need your help, please don’t nuke me. Since yet I had written my C++ Codes @ Dev-CPP a Freeware-Editor. But now, it’s all new to me, as first steps learning / understanding the working of Visual C++ I want to write a simple "ABC" Program wich I written like: int a=0,b=0,c=0; cout << "a "; cin >> a; cout << "\nb "; cin >> b; c=a+b; system("CLS"); cout << a < ...Show All
Theo van der Stap Structs and CArrays
I have the following bits of code typedef CArray <CPoint, CPoint> POINTS_ARRAY; struct MY_STRUCT { int a_stored_integer; POINTS_ARRAY points; }; typedef CArray<MY_STRUCT , MY_STRUCT> MY_STRUCT_ARRAY; All that code is in a header file, then in a cpp file i have the following MY_STRUCT_ARRAY my_array; MY_STRUCT my_struct; my_array.Add(my_struct); and it throws this error error C2664: 'CArra ...Show All
maige C++ MFC Project will not generate files. Vis. Studio 2005, Std. Edition
Hello... I loaded Visual Studio 2005, Standard Edition. I'm running Windows XP, SP2. I can build C# projects successfully but can NOT build C++ projects successfully. One symptom is an empty MFC project. I get folders but no generated files or classes. Any ideas as to what the problem might be I'm trying a reload sometime soon. Thanks. CFMtch Don... Thanks for the feedback. No solut ...Show All
lcubian debug output/cout output/ & debugging best pracatices?
Hey folks... you'll have to forgive me... I'm coming from a Java world. I inserted some code that will print to cout.., yet I don't know where to look for where this will be... And debugging... what are some good best practices (in java i used to call my own print function which would first check if debugging was enabled) i've seen some code with a 'DEBUG' function... what i ...Show All
PedroMCN Problem seeing my window
I just got Visual Studio 2005 and I tried to make a program using Win32. The program is just displaying a window. When I compile the code I get no errors at all, but nothing happens after that. My window doesn't pop up. I made sure that I had the functions: ShowWindow() and UpdateWindow, but apparently that wasn't the problem. Please help. Here is my CreateWindow code: hwnd = CreateWindowEx(NULL,"Window ...Show All
serimc ComboBox Help
Hi. I am making a program that has a combo box in it. It is a static drop-down list. I want to be able to open a certain window when "Test window" is selected in the box. How do I do this. I am programming this using Visual C++ 6.0. It is a MFC so if I could get any help that would be wonderful. Thanks. Thank you for all the help.. I got it to work because of everyone's help. Thanks. ctimko wrote: So, I would use a ...Show All
Maplesoft Where is 64-bit test container?
hi, i'm ever. i'm porting my ATL ActiveX control to 64-bit Windows XP. i'm using VS2005 beta2 + 64-bit Windows XP + Dell workstation precision 670. i can build my control successfully at VS2005 beta2 for x64 platform and it can be registered by REGSVR32.EXE. BUT when i open the ActiveX Control Test Container and insert it, i can't find it in the Control List Box. moreover, if i copy my control to Windows\System32 directory and register it in t ...Show All
NewUser06 User message handler in CDocument derived class
hi, I am trying to handle a user message from the CDocument derived class. I am adding a message handler to my MyDoc(derived from CDocument) as follows ON_MESSAGE(UM_SHOW_SOMETHING, OnShowSomething) and the message handler is LRESULT MyDoc::OnShowSomething(WPARAM wParam, LPARAM lParam) { //Do something return 0; } I get an error as follows error C2440: 'static_cast' : cannot convert from 'LRESULT (__thiscall My ...Show All
RA-SJD linker problem
I am getting a LNK2019 and a LNK1120 when i buil the folowing code. #include <iostream> using namespace std; int main() { cout << "Hello World" << endl; } what is the problem So you add your own main method Try not checking the 'empty project' option when you create a console app. i don't know what the project type is. I'm new. but to create the project i went to file, ...Show All
hotfoot982 How to check whether an file is read only or not using C Language
All, How to check whether an file is read only or not using C Language Shirish I assume by read-only you mean it's not writable. The only reliable way to check if a file is not writable is to attempt to open it for reading, close it then attempt to open it for writing. If the read attempt succeeds but the write attempt fails, you know it's "read only". Checking file attributes is unreliab ...Show All
zetamine Pointers & Linked Lists
I'm working on a Win32 Console Project and have run into a problem that hopefully someone can point me in the right direction. Here's an idea of what is going on. Let's say I have a linked list class named "myList" and a node class "myNode", what I'm trying to do is now have a linked list of linked lists (so in effect, a list of myLists). Let call the list of lists by the class name of allLists. I have the linked ...Show All
Jens Uffhaus Loading dll from another folder
In my application, I need to use dll A that depends on another dll B. A.dll is in my application folder and B.dll is in a subfolder of the application folder. What can I do so that A.dll can load B.dll from its present location I can not change the location of these dlls or their source code - I can only change the code of the application. Any ideas Maybe you can work with runtime dynamic linking. LoadLi ...Show All
