-
- Unicode is killing me
by 69L46
- 8 Replies
- Last post
by crescens2k
- Using VS 2005 and I've been googling for the last several hours and keep getting the sdame 2 answers to the "cannot convert char[...] to LPCWSTR" or some other variation of that.
The "offending" line of code:
MessageBox(hWnd, szBuffer, NULL, MB_OK);
The first answer is useless - using L"" or _T(x) - since I want to use a variable, not a constant.
-
- Equal compare
by George2
- 4 Replies
- Last post
by George2
- Hello everyone,
I want to confirm that on a 32-bit machine,
1. compare the value of two byte to see whether they are equal or not;
2. compare the value of two integer (4-byte) to see whether they are equal or not.
(1) and (2) should have the same performance, right I am using x86 32bit Windows machine to develop native unmanaged C++ application.
thanks in advance, Ge
-
- mangled name
by Shouvik
- 14 Replies
- Last post
by Holger Grund
- Is there any API to retrieve the address of a method (private/public) using the mangled name. the method is supposed to be a class member.
we can know the mangled name from the .map file in VC++ 6.0
Please also suggest a method of using this in GCC.
-
- integrating VC++ and C# GUIs
by DavidRaines
- 4 Replies
- Last post
by DavidRaines
- ( sorry for cross posting with the C# forum)
I'm trying to integrate an unmanaged VC++ MFC GUI application with a new C# library. The C# library is a GIS library (i.e., it draws maps to the screen), and I'd like to (somehow) tell it to draw to one of the HWND window handles that was defined in VC++. The C# library allows the user to set the window handle for it to use (it accepts the standard I
-
- Input Text size
by Prabhu K.M
- 5 Replies
- Last post
by Prabhu K.M
- dear Friends,
Here i had some doubts, in giving the InputText size, Output Text size and buffer size. How to give the Maximum Input Text size, Output Text size and Buffer Size in vc++ language for unicode conversion.
With Regards,
Prabhu
-
- ActiveX Control is not displayed properly on I.E 6 sp1.
by Laiq
- 2 Replies
- Last post
by Laiq
- I created an ActiveX control using ATL. It loads backGround Image in Static Control using OleLoadPicturePath(..). It is displayed properly in I.E 7.0. But not displayed properly in Windows XP I.E 6 sp1 with screen Resolution 1680x1050.
-
- ReadProcessMemory crashes computer
by nmfl
- 14 Replies
- Last post
by nmfl
- I am using CreateProcess, then using the process handle that returns and passing it to ReadProcessMemory. I have about 10 addresses I iterate through using ReadProcessMemory on each of them every 200 ms. Whenever there is a change detected in one of them, it will output the string ReadProcessMemory returns from the target process's memory. When I print this string to the console, my computer will
-
- Lost the Design option in my 2005 CLR project
by oz3fi
- 1 Replies
- Last post
by oz3fi
- Dear All
I have lost the Design (Form1[Design]) option in my 2005 CLR project. Can some one help me to get this back.
Regards
Finn
-
- VC6 problem in string.h
by amer83
- 11 Replies
- Last post
by Shakje
- Hello :
i'am working on VC++ 6 and when i do this it doesn't work :
#include <string.h>
#include <iostream.h>
void main()
{
string s;
s = "Hello, world";
cout << s << endl;
}
error is that string : undeclared identifier.
i want to work with C-style string because i'am working on a proxy project
and i can't solve
-
- subject is vb.net
by sandippatel
- 1 Replies
- Last post
by crescens2k
- Heloo friends,
How to connect the SQL-Server in VB.NET
so plz help me b'coz my final year project on vb.net so help me.
-
- get , set native
by CyberLord_Dan
- 14 Replies
- Last post
by Ramkrishna Pawar
- Hi!
Using .net framework, you can create sth like this:
public bool variab
{
get{return _vari;}
set{_vari=value;}
}
I need to do this within a native project (Win32). How do I do this
-
- SxS configurations.
by Katzs
- 1 Replies
- Last post
by Bite Qiu - MSFT
- I use VS 2005 Standard and starting yesterday whenever I try to build a console c++ program and run it I get the following message: The application has failed to start because its side-by-side configuration is incorrect. Please see the application event log for more detail. The only thing I've changed on my system was that I changed from Vista Home Premium to Vista Ultimate (both 32-bit) a couple
-
- Event Confusion!!
by pj_bennett
- 8 Replies
- Last post
by pj_bennett
- Hi all, I'm pretty new to the world of VC++ programming and I'm trying to implement a mousemove event on a picture box on a dialog. I can get the MouseMove event to fire if I add a message map etc to the dialog cpp file and header, but when I add a picture box, there doesn't appear to be a class file to add any code to for the MouseMove event. I'm a little confused, if the code goes in the Dialog
-
- pass multi-byte (or wide) characters to DeleteFile
by George2
- 2 Replies
- Last post
by einaros
- Hello everyone,
The prototype of DeleteFile is,
BOOL WINAPI DeleteFile( LPCTSTR lpFileName );
I am wondering if the input parameter (string) is multi-byte characters or wide characters, how should I pass them in Do I need to do any conversions
thanks in advance, George
-
- Detour error
by qzy
- 14 Replies
- Last post
by qzy
- Hi all,
I'm not sure whether this is the right place to post this... I'm recently trying to use Detour to intercept Win32 API calls of other processes. I'm using Windows XP SP2.
It's great that Detour has an sample that actually does this for me. And I've already successfully got it running. The sample name is 'traceapi'. Basically the sample generates the 'traceapi.dll' which can in
-
- Linker options
by Jerome BG
- 3 Replies
- Last post
by einaros
- Im sure this is a real easy one, but how do I set the -l flag (gcc) for my project the compile command for gcc is (basically) gcc tiff_demo.c -ltiff and after tryin real real hard I cant figure out VS's link option /LIBPATH tiff tells me I need a tiff.obj which I dont have all the headers and .libs folders are set as VC++ Directories so what else do i have to do to get this to work -Jerome BG
-
- Can't Delete Object Pointer
by EEPerson
- 6 Replies
- Last post
by EEPerson
- I'm trying to write a program that needs to use a driver dll. As a result I don't have access to the source code for the dll. For part of my code I need to create objects using classes from the driver dll and store them as pointers using the 'new' keyword. The problem is that when the program tries to delete these objects I get the error: 'Invalid Address specified to RtlValidateHeap( 00AB0000, 00
-
- Need help with generating random numbers
by Theillbehaviored
- 5 Replies
- Last post
by Marius Bancila
- Hello, I am making a game where the program generates a random number and the user has 5 guesses to guess what the number is. However, I am experiencing problems and would be greatly appreciative if someone could help me. 1. Every time the program runs the number is always the same, its always one, it never changes, making it not random at all. How do I make it so the number changes each time the
-
- encountering a debug break point causes VS to take focus from another application
by R.D.
- 0 Replies
- Last post
by R.D.
- Please modify the IDE so that when a break point is encountered by the debugger VS does not take focus from another application.
This is a royal pain since I can be in another application such as Outlook and actively typing when the breakpoint is encountered. At that point the IDE starts modifying whatever file the breakpoint is in. Then I have to endure a lengthy wait as the edit&conti
-
- Backing up directories using BackupRead().
by Ketan Mahajan
- 5 Replies
- Last post
by Ketan Mahajan
- Hello everyone.
I am trying to write a generalized routine for backup of files as well as directories. The procedure I have followed is as follows:
(Consider that user is having all access rights to all files and directories.)
1) Call CreateFile() with FILE_FLAG_BACKUP_SEMANTICS flag set.
2) Call BackupRead() passing handle obtained from CreateFile().
3) Write the buffer obtai
-
- adding MFC controls to main window after start-up
by blindHurdler
- 8 Replies
- Last post
by Simple Samples
- Hello there,
I am currently writing an MFC application, and want to add some controls. Most of the examples and tutorials show how to add controls to a dialog box, but I need to add them to the main window.
The problem is, these controls will not be shown straight away, they are dependant on what file the user opens. Therefore, these buttons should (probably) be created in the appDoc class,
-
- Stack trace memory leak: dbghelp and Constructors
by Pentalon
- 0 Replies
- Last post
by Pentalon
- I'm using StackWalk64() and SymGetSymFromAddr64() in dbghelp.lib v. 6.6.7.5 to do stack traces in VS2003 SP1. When I do the stack trace in the constructor of an object, I get a memory leak. If I do it outside the constructor, I don't. The leak exhibits itself as increasing memory usage as the program runs. The SymGetSymFromAddr64() call seems to be the one doing the leak; if I comment it out, then
-
- Invalid Address specified to RtlFreeHeap error trying to deallocate memory
by bcw
- 4 Replies
- Last post
by Bite Qiu - MSFT
- Hello,
I've have a MFC DLL that allocates/deallocates memory for an object from the heap so that the DLL can dispatch requests to the object when a Win32 program calls the DLL's exported functions.
For example, when a DLL client calls the DLL's export function 'init()', the DLL allocates memory memory from the heap via the 'new' keyword for an object that will handle subsequent reque
-
- CString to long
by YaelS
- 3 Replies
- Last post
by TilakGopi
- Hi,
How cam I convert this string to long //13:39
My goal is for example: to add 10 minits to this..
CString sTimeH = "13";
CString sTimeM = "39";
-
- Member-window in Class View flickers in Visual Studio 2005
by Geert Mys
- 1 Replies
- Last post
by jdr5
- Hello,
Product: Visual Studio 2005, version 8.0.50727.42 (RTM-050727-4200).
When selecting a class in the Class View, Class View lower panes shows the members.
However the member-list refreshes almost every second, resulting in an anoying flickering of the view.
Moreover scrolling in the Class View upper pane, becomes difficult, for after each refresh, the focus is set to the active cl