-
- How to wrap Native class of third party library which provide header file and static .LIB for use in VB.net
by Khammonh
- 2 Replies
- Last post
by Khammonh
- Hi Native proffessional
I bough 3rd party library that provides class header file along with Static LIB , I need to wrap it for use in VB.NET .
I used to write program in borland C++ in 1992 when VC++ still not release , now there are many changes and I need to learn again new syntax. Last 2 weeks I went through many posts in webboard and in MSDN to find the effective way to wrap the class t
-
- 4 threads created by CFileDialog::DoModal
by VoiceOfExperience
- 4 Replies
- Last post
by VikasKumar
- With VS2005/MFC in a dialog, I am using a file open common dialog to allow the user to select a file. The code for this is
char fileTypes[]=_T( "My files (*.fil)|*.fil|All files|*.*||" );
CFileDialog dlg(TRUE,_T( "fil" ),_T( "*.fil" ),OFN_CREATEPROMPT|OFN_HIDEREADONLY|OFN_EXPLORER,fileTypes);
dlg.m_ofn.lpstrTitle=title;
dlg.m_ofn.lpstrInitialDir=start
-
- $(InputFile) macro translation not functional.
by Greg Toombs
- 6 Replies
- Last post
by Simple Samples
- Hey... I'm trying to automate a way for the $(InputFile) macro to be given to all .cpp sources at compile time through a preprocessor definition. Currently, I have INPUTFILE=$(InputFile) in the definitions section of the project options. a.cpp should see INPUTFILE = a, b.cpp should see INPUTFILE = b, etc. However, all files see INPUTFILE = a. Any ideas on how to fix this I have thousands of source
-
- Can not alloc memory when vb.NET application use dll written by C++!
by Tran Hoai Phuogn
- 7 Replies
- Last post
by Tran Hoai Phuogn
- HI all, I wrote a dll program in C++ for Pocket PC application (eVC4), in this dll, have line code to allocate memory: pMem = ((void*)calloc(1, iSize)); . When I create application in C++ to use this dll, it is ok! But when I create application in VB.NET to use this dll, sometime (not always) can not calloc memory, that mean pMem = NULL. I guest that this proplem is lack of HEAP, but I am not sure
-
- About delete this
by Sam1981
- 14 Replies
- Last post
by Brian Kramer
- Hi,
Is it valid that delete this ptr in a class method And why And it should be used in which the case if it's valid
-
- Including statistical calculation in VisualC++ code
by Nico Acosta
- 9 Replies
- Last post
by Nico Acosta
- Hi.
How can I work with statistical functions, like NormSDist( ), within VisualC++ code
I need to perform calculations like this:
d1*NormsDist(d2)
<math.h> doens't include statistics and I' m not interested in scientific libraries like NagC etc.
Thanks in advance
Nico
-
- jpeg file conversion problem
by amitparmar
- 4 Replies
- Last post
by amitparmar
- Hello everybody
i m developing one application which takes picture from camera and save it in to the harddisk. im using gdi+ (Image.save()) method to convert image data in to jpeg format.i have created one thread using afxbeginthread function. i set thread's priority low. but it spoil image. im not getting good image
and when i set thread's priority high (above normal) then while functio
-
- GetProcAddress() returns NULL
by Marcelo566393
- 3 Replies
- Last post
by Marcelo
- I'm learning how to call a function from a DLL so I created a very simple test case, using Microsoft Visual C++ 6.0 Enterprise Edition.
If I call GetProcAddress() using the DLL's function name I get "NULL".
If I change the name with the symbol found in the .lib file it works.
Why is that
How can I make it work with the function name
Thanks !!!
Here is the co
-
- Lost the msvcr71.dll during system recovery
by coolgranny
- 1 Replies
- Last post
by Jerry Goodwin
- Did system recovery an after complete it gave me error message the msvcr71.dll not found. How can i slove this problem
-
- Difference between Windows Platform SDK and Windows SDK?
by Leonard51607
- 6 Replies
- Last post
by Bite Qiu - MSFT
- I'm using VC++ 2005 express edition so I need SDK to build native win32 applications. But it seems there are two choices for SDK: Windows platform SDK ( http://www.microsoft.com/downloads/details.aspx FamilyId=0BAF2B35-C656-4969-ACE8-E4C0C0716ADB&displaylang=en )
and Windows SDK ( http://www.microsoft.com/downloads/details.aspx FamilyId=7614FE22-8A64-4DFB-AA0C-DB53035F40A0&displaylang=e
-
- Word game
by Yustme
- 5 Replies
- Last post
by Simple Samples
- Hi, Im trying to make a word game in C++. I've got a char array which contains a few letters. With those letters the user can make words. But i want the program to find all possible combinations with those letters so i can compare it to the dictionary for checking if the words does exist. I've tried the algorithm of permutations. But it starts with the first index of the array and every combinatio
-
- A very strange exception problem
by hipswich
- 14 Replies
- Last post
by hipswich
- Hi all,
I have a very weird problem and hope someone can shed some light on this. I have two statements if (A == B) and if (bFlag) that seem to be fine no matter whether I check them separately or their combination. Int the the following code, exception is caught only at location 5 repeatedly. No exception has ever been caught at other locations. I cannot make any sense out of it.
-
- can Any one help me on this
by mrcool18t
- 1 Replies
- Last post
by Viorel.
- I have CDateTimeCtrl in my dialog box. How can i handler to this when time changed by user. I tried.. ON_DTN_DATE TIMECHANGE(IDC_DT, handler) but i didnt work. Kindly help.
-
- LNK2019: unresolved external symbol _main referenced in function ___tmainCRTStartup
by daniel mark
- 5 Replies
- Last post
by Simple Samples
- Hello all:
I have the following code in VS.NET 2005 C++
1> First, I try to compile the following code in IDE
// File: TestOne.cpp
using namespace System;
void _tmain() { Console::WriteLine("Hello World"); }
I get the following warning messages:
Error 1 error LNK2019: unresolved external symbol _main referenced in function ___tmainCRTStartup MSV
-
- Using CAnimateCtrl in different thread
by Kuldeep Mann
- 3 Replies
- Last post
by Scott McPhillips
- Hello
I have a CDialog based applicaction which does some lengthy processing and I need to display a busy animation. I have created a separate thread (code taken from msdn) whch creates the animation control but the animation is not displayed at all during the duration of the busy procedure. I know I can use PeekAndPump() in my DoLengthyOperation() method but it would be extremely helpful i
-
- convert from size_t to unsigned int
by George2
- 2 Replies
- Last post
by Simple Samples
- Hello everyone,
When converting from size_t to unsigned int, there will be a warning message,
warning C4267: '=' : conversion from 'size_t' to 'int', possible loss of data
I do not know why, since in crtdbg.h, size_t is defined to int, right
thanks in advance, George
-
- Arguments for ATL Object Call
by CurtisDeHaven
- 0 Replies
- Last post
by CurtisDeHaven
- Hi All... I'm sorry if this is the wrong place to post - just didnt know where else to put it. I'm wrapping some legacy C/C++ code inside an ATL object so we can use it inside an asp.net (c#) project. One of the methods I've exposed is looking for an unsigned char buffer address and a byte count. Of the argument types I'm offered in the ATL wizard, "BYTE*" seems to be the best fit for th
-
- Passing void* as BackgroundWorker Argument
by YT
- 1 Replies
- Last post
by P.GopalaKrishna
- I've created a background worker with "int" argument.
Is anyone know how to pass a "void*" as a parameter when I want to use BackgroundWorker.
The error message showed that "cannot convert void* to an System: bject"
-
- Application that makes EXE
by dacky
- 4 Replies
- Last post
by dacky
- Is it possible in MFC to create an EXE file programmatically I hope you guys can help me on this. My application is gonna upload an image to a device. When it is uploaded it also contains meta information appended on the image data because my application has also settings. I want a way that i can preserve the image data and all its settings on the absence of the device. I want to generate an exec
-
- Problem with NULL in visualstudio 2005
by Venu557822
- 6 Replies
- Last post
by Marius Bancila
- Hi, I am trying to compile VC++6 code in 2005. I am having problems with NULL any one can explain me how do I fix this error message
My code is as below..
static vector < int >::iterator data = NULL;
I got the error message below.
f:\test\test.cpp(20) : error C2440: 'initializing' : cannot convert from 'int' to 'std::_Vector_iterator<_Ty,_Alloc>'
1
-
- VS 2005 ifstream bug
by Valmont
- 2 Replies
- Last post
by Valmont
- Microsoft Visual Studio 2005
Version 8.0.50727.42 (RTM.050727-4200)
Microsoft .NET Framework
Version 2.0.50727
The code below doesn't create the txt file. Why
(It's a complete new project)
#include <iostream>
#include <fstream>
using namespace std;
ifstream UserInput("UserInput.txt");
int main()
{
if(!UserInput)
{
cout&
-
- Is it just me? Deleting handlers and functions w/VC2005 impossible
by PAC
- 14 Replies
- Last post
by Royoni
- OK,
I'm completely baffled. I've been a programmer dating back to MSC version 8 for DOS.
For the past couple years I've mainly stuck to VC6 because the newer interface is just too full of fluff and non-intutitive for my tastes. But I do have three projects which require either VC2003 or the latest and "greatest"
One thing that has caused me to waste the most amount o
-
- how can i list opened file(s) from given drive?
by neeocis
- 6 Replies
- Last post
by neeocis
- Hi all, i m really hang on this problem cud any one help me plz. The problem is: Suppose there are two files named File1.txt and File2.txt in drive H. and the File2.txt is opened. How can i get this opend file(s) name Input: Drive Name: H Output: File2.txt Thanks in advance Br, Neeocis
-
- Compiling the code developed in VC++ 6.0 on .NET2003
by Venugopal.Pudipeddi
- 4 Replies
- Last post
by Marius Bancila
- Hi, The following compilation error is getting while migrating the code from VC++ 6.0 to .NET2003. c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\list(34) : error C2558: class 'std::auto_ptr<_Ty>' : no copy constructor available or copy constructor is declared 'explicit' with [ _Ty=Notice ] c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include
-
- How to remap a char[] to an int[] without a loop?
by ChrisErven
- 11 Replies
- Last post
by ChrisErven
- Hi, I have a quick question, I have a C++ Dll app that grabs data through the USB interface. The USB interface requires a char[] (a char array) to be passed into the read argument, but the data it returns is infact an integer (4 chars make up each int). Rather then looping through the char array and converting every 4 chars to an int and then sticking that int into a new int array, I was hoping t