-
- action on pressing a key
by Anon4ymous12345
- 8 Replies
- Last post
by Anon4ymous12345
- hi i am having an experiment with sensors. I calcualte the current distance top be d0 & print it out. But i need to get a reference point So i want to set a reference point everytime i press a key& the distance then has to be caluculated with "dref - do" .... & this " new" current distance has to be given out.Does anyone have ideas for the syntax ! thanks
C
-
- why MFC not installed
by Chris553726
- 2 Replies
- Last post
by Chris
- I have installed Visual C++ 2008 Beta2.
But there is no any MFC related things installed.
Could anyone help me
please refer to the screen shot below: http://screencast.com/t/Kvi2fzgpQ
-
- Declaring enum inside managed class
by sriesch
- 3 Replies
- Last post
by sriesch
- Is it possible to use an enum inside a managed class
For example, I put the following line of code inside my MySettings class under a private section:
enum OptionFileIndexes {OptionIndexLogPathAndFilename, LastOptionIndexCount};
Then I add the following line in a method of the MySettings class:
array<System: tring^>^ FileContents=gcnew array<System: tring^>(OptionFileInd
-
- Mixing native C++ and C++/CLI : LNK2028 and LNK2028 Erors
by Aurelien L.
- 6 Replies
- Last post
by Aurelien L.
- Hi I am developping a c++/CLI application witch call a c++ native fonction that need a SAFEARRAY** of custom struct for a parameter. I use UuidFromString to obtain a pointer to the GUID representing the custom struct. After i use SafeArrayCreateVectorEx with the pointer, SafeArrayAccessData memcpy_s to copy the data into the safearray and SafeArrayUnaccessData i have added Rpcrt4.lib, oleaut32.li
-
- vcproj: How to save debugging settings into portable vcproject?
by Stuart Reynolds
- 13 Replies
- Last post
by Simple Samples
- I want to be able to distribute vcproj files to customers with custom debug settings in the project configuration. It seems that whenever I set the fields in the project's Properties dialog, the changes are saved into some new non-portable ".user" file, and not in the ".vcproj". For example, if I do:
Open MyProject.vcproj
Go to: Project > Properties > Configurati
-
- Migration from VC++.Net 2003 to VC++ .Net2005 issues
by Leojp
- 2 Replies
- Last post
by Leojp
- In my project i have a component named PTS Engine which is developed in VC++ .Net 2003 . [VC 6.0]
And it is migrated to VC++.NET 2005 version. Initially this migration process has coded and tested in VC++ .NET 2005 Beta version.
In beta version everything is working fine. When i tryied to run in .NET 2005 full version i am facing the following access violation Error.
"
-
- How to create ListView with Option buttons?
by Machhindra
- 6 Replies
- Last post
by Machhindra
- I have listview control in Dialog based MFC application (VC++ - VS 2005). I have populated multiple rows of data in the ListView control running in report mode.
There are three mutually exclusive choices for each row. User can select one of the choice. e.g Convert/ Delete / Skip. How would I provide these choices to the user
One approch could be - Display two option buttons for each
-
- namespace Structure... Simple way for it...??
by Martin J. Kim
- 3 Replies
- Last post
by Bite Qiu - MSFT
- Hi, to all.
I have a question about constructing own namespace structure.
I mean that when i create the structure such as System :: Data :: Odbc. (blank is because of : )
Is there any different, possible way like the following namespace System { namespace Data { namespace Odbc { //To doĦ } } }
This makes me little tired..
anyway, is there any different way for it
and, I already t
-
- How to define 1-d array type using typedef
by Raihan
- 3 Replies
- Last post
by Raihan
- typedef short[50] dataList;
dataList* dl=new dataList;
I know this syntax does not work.. But I am sure there is something comparable to this that will allow me to easily create array type of particular length..
I appreciate any help .
-
- Trackbar controlling PictureBoxes
by Wingnutt69
- 8 Replies
- Last post
by Wingnutt69
- I have a question regarding how to go about fixing a problem I am having. I am using a trackbar control to provide a range of values. I have a series of pictureboxes that would become visible in response to the trackbar increasing in value and disappearing in response to decreasing value. I am using a series of "if" statements to control the picture boxes i.e
if (BclassPax_track
-
- Memory leak - What is in "Other Data" ?
by windowsdeveloper
- 3 Replies
- Last post
by Andreas Masur
- Hi, I have an application whose memory use seems to be growing more than expected on a customer's Windows 2003 system. Vadump.exe reports that the majority of the memory used is categorized as "Other Data". Does anybody know what this mystery category represents How can I tell what allocates it and what's in there Should I be able to find it with windbg The application doesn't rely on
-
- plug_in in Microsoft SMS
by Anonymous567100
- 0 Replies
- Last post
by Anonymous567100
- Hi All how can i build a third party plug-in using Microsoft SMS to install one application. Thanks in advance nanda
-
- how to find the number of ports in our PC.
by unleash_siva
- 10 Replies
- Last post
by Paul Marriott
- Hello friends, Can anyone say how to find the number of ports and the name of ports such as COM1, COM2 etc in our PC using a C++ or VC++ program. I searched it everywhere, but i couldnt find a proper source code. regards, siva.
-
- API Hooking issues
by Vaibhav
- 1 Replies
- Last post
by einaros
- Hi, this is vaibhav working as a Senior Software Developer in VC++/Win32 on Windows. I have some question, regarding the Windows File System Encryption/Decryption on the fly, i.e. in-memory while performing different file I/O operations In technical term, I need some sort of DLL (have NTDLL APIs hooking logic implemented) or a File System Filter driver (just like file spy legacy driver or swap Bu
-
- how to debug code in vc6 when the code is built in vc7
by Anonymous564864
- 2 Replies
- Last post
by Anonymous
- Hello,
I have a dll built in VC7, the main program runs in VC6, calls the dll functions, it can not step into the functions, is there a way to do that
the dll project is made by the visual studio .net through "new->project->visual c++ projects->MFC DLL".
the main program is a tipical MDI application made by VC6.
It seems if using static library (not dll)
-
- Saving a file in the same directory as the program's .exe file
by Andrew Ellis
- 6 Replies
- Last post
by AbuAlbino
- Hi,
I'm writing an application where I am saving a configuration file. How do I specify a path that ensures the configration file is written to and read from the same directory as the executable file
Thanks
Andrew Ellis
-
- HELP! Urgent! I deleted my .cpp file after i compile.
by GKWong
- 5 Replies
- Last post
by Marius Bancila
- I write my C++ source code for my assignment for few days and finally get it done. But now i accidentally deleted the C++ source file. Now what i left is the working exe file from it.
Is there any way that i can get back the source code from the exe file Is there any decompiler that will retrieve it back
Pls help me! Urgent!
-
- Getch() problem affecting cout display
by arch55
- 2 Replies
- Last post
by arch55
- I'm just starting to learn C++ and I'm using the Microsoft Visual C++ 6.0 software to create very basic win32 console applications. When I use Getch() in the main function it seems to prevent the screen display of characters using cout << "xxxxxxxx"; even though the cout statment preceeds the Getch() function. The cout stream displays only after Getch executes by pressing a key. I
-
- Defining Classes
by j1mb0
- 8 Replies
- Last post
by NeederOfVBHelp
- Sorry if this isnt in exactly the right place... But here goes. I'm trying to build this program and i cant figure our what im doing wrong, if you guys could look at the code and give me some tips it would be great. Thanks. Three separate files. //*************************************************************** //File: Point2d.h #ifndef Point2D_h_ #define Point2D_h_ class Point2D { public: Point2
-
- Umdh does not load symbols.
by ablmf
- 2 Replies
- Last post
by ablmf
- I am trying to use umdh, the memory dump tools with windbg to dump the memory usage of notepad.exe. I have set the _NT_SYMBOL_PATH correctly as the document described. But in the log I can see that no symbols was loaded. Does anyone know how to resolve this problem BTW: I installed downloaded windows xp symbols in D:\windows\symbols And I set _NT_SYMBOL_PATH=D:\windows\symbols I am sure didn't ma
-
- compiler error on duplicate definition
by Erik
- 6 Replies
- Last post
by einaros
- Hi, I'm doing this project in wich I use code that I'm not allowed to change, in one of the header files in this code, an identifier (BYTE) is defined twice, without any #ifdef branchning or anything, just twice right in the code; I guess this is a mistake by the developer. However, their code compiles fine in my Visual C++ compiler - altho my code that includes the same header file doesn't; it re
-
- printing out a 64 bit number....
by Noviez
- 3 Replies
- Last post
by Noviez
- hi all, Is there any way to print a unsigned 64 bit long [DWORD64] into a file.. i mean a string format specifier. when i printed a 64 bit dword using %u it capped the top values is there any other way
-
- dll file missing in walkthrough
by Miggi
- 4 Replies
- Last post
by Miggi
- I'm just starting to learn C++ and am trying to follow the walkthrough
http://msdn2.microsoft.com/en-us/library/ms235628(VS.80).aspx
"Creating a Windows Forms Control". It seems easy enough and I follow the text to the letter!. I do the first really easy part called "clickcounter" and build it without any errors.
I cannot however find any sign of the clickcounter.d
-
- Dialog keypress events
by Asif110
- 12 Replies
- Last post
by Asif110
- I want to disable escape and enter keys on a dialog based application so that it wont close. I am using
PreTranslateMessage and I have defined ON_WM_KEYDOWN() message map. Here's the code
Code Block
BOOL CMyDialog::PreTranslateMessage(MSG* pMsg)
{
if (pMsg->message==WM_KEYDOWN)
{
if (pMsg->wParam==VK_RETURN || pMsg->wParam==VK_ESCAPE)
pMsg-&g
-
- Prototyping problems....
by Spardeous
- 3 Replies
- Last post
by Spardeous
- Code Snippet
/* Prototypes */
class PC_CLASS;
class SOCK_CLASS; class PC_CLASS { SOCK_CLASS sc; } PC_CLASS *pl; class SOCK_CLASS { SOCKET s; int Connected; } Among a few member access errors, I get error C2079: 'PC_CLASS: c' uses undefined class 'SOCK_CLASS' Now lets just say that I can't change the order in which these classes are declared.... Maybe i'm doing something wrong