Quantcast
Channel: Visual C forum
Browsing all 15302 articles
Browse latest View live

how to open OBJ file?

how to open the OBJ file in visual studio 2008 for c++if I want to modify the object file ,how to do it

View Article


the identifier __VA_ARGS__ can only appear in the replacement lists of...

Hi All! Please I need some help, I'm trying to get the number of arguments using NUMARGS(__VA_ARGS__):here is the definition of the macro NUMARGS:#define NUMARGS(...)...

View Article


How to implement another wndproc callback?

Hi All! Please I need some help, I'd like to implement another wndproc for an application by using its main window handle. so is it possible to do that? and how to do that? thanks.

View Article

cryptdecrypt succeeds with NTE_BAD_DATA

I'm attempting to encrypt/decrypt a single buffer using the CryptoAPI.I've been successful in encrypting/decrypting a key and Importing/Exporting the key BLOB. I've also (only in the apparent sense)...

View Article

VS2010: program running in IDE but not as an executable

My C++/CLI program, developed in Visual Studio 2010, runs fine in debug and release mode if I launch it INSIDE Visual Studio, but it does not do anything  if I launch the executable file (in both the...

View Article


Access of pointer to double member in a class

I kept getting error 'x' was not declared in this scope.Thanks in advance.class cl {public:  double *x;}int main() {cl c1;void fctn (cl *) ;fctn (&c1);return 0;}void fctn(&c1) {c1->x = 5; }

View Article

VS2010 C++/CLI MFC app - Application popup on program exit (hang)

Windows Server 2003 Version 3790 (Service Pack 2) UP Free x86 compatibleThis is a MFC console application (MFC in a shared DLL) that was converted to call ourC# assembly using the technique described...

View Article

std::thread, some quick, some "long"

Hi,I have some code, that is multithreaded, and, it has to do with SQL, and, file parsing.I have a method, filestodb()that parses, some files, and, then, writes their data, to a db.I use this method...

View Article


Cannot drag control into a group box

Visual Studio 2008, MFC, C++How do I get a control (check box) into a group box?A group box is put on a dialog and an existing button, static text, or check box is dragged on to it.  When the group box...

View Article


GDI error, and windows can not show a dialog when using CProgressCtrlST

I use VS2012 in windows7I draw 128 CProgressCtrlST in a windows, and a button to show a simple dialog(only has 'ok' and 'cancel' buttons)the problem is if I draw more then 35 CProgressCtrlST, when...

View Article

WMI does not seem to work with UInt64 types

I have a (theoretically) straightforward loop that enumerates drive sizes.  It works just fine with any property that isn't a UINT64.  The working version (adapted straight from the MSDN WMI docs, with...

View Article

Call C# managed dll from native c++ (for noobs)

Hello,First of all I know this question has been asked around many times. Although I've been reading the same answers over and over and still didn't get much help. What I need is to instantiate a class...

View Article

MFC (VC 6) stylish GUI

Hi all,Due to some reasons, our base product is based on VC 6 and it is quite large amount of work to be re-done which is not possible right now. In a need to modify the MFC dialog's overall look and...

View Article


Bitmap image in listcontrl column header

hi,how to retrieve the image in column header of list contrl.i have loaded the image in column header,nw i want  the name  of the image that ia already loaded.I have loaded bitmap image in column...

View Article

error: function must return a value!!??

Hi All! I have a test function "contains_abc(char* string)" that checks string for containing "a" or "b" or "c" the function syntax is ok, this is the code:#define NO_A_NO_B_NO_C 0#define CONTAINS_A...

View Article


Most significant bit in 'short'

Is the 'most significant bit' in a 'short', going left to right, the last bit rather than the first bit since Windows uses a little-endian system ? Or is MSB not affected by the endianness of the...

View Article

Dialog Data Validation for float inputs

Hi,all, I have a set of edit controls for user input float values. My aim is to let the input range to be limited in the range of (0,1], I looked into the function:DDV_MinMaxFloat(pDX, someVariable, 0,...

View Article


Is it possible to retrieve the value entry for a specific String ID in a...

Hi,I'm new to using the String Table in a Resource File(.rc). I can see that the String Table contains three columns: ID, Value and Caption. I know that I use CString.LoadString() to retrieve the...

View Article

DLL using unicode Program not using unicode.

I have some code that I have to support that is not UNICODE but compiled as standard C++. I have a new dll that uses unicode. The examples that was given were written in unicode. The structure of an...

View Article

how do I know the values for variables associated with edit controls have...

Hi, all, as the title asked, is there a method that can be used to decide whether a value of a variable which is associated with a edit control has been actually changed? For example, a user-input has...

View Article
Browsing all 15302 articles
Browse latest View live