-
- Mixed dll link successfully in win32 but fail in x64
by Tiebe
- 8 Replies
- Last post
by Tiebe
- I have a unmanaged and managed mixed dll project which builds well in win 32 but throws link errors in x64.
The code is mostly same as below:
// AeccDotNetUtils.h
class __ declspec(dllexport) AeccDotNetUtils
{
public :
static bool Execute( const wchar_t * assemblyFullName, const wchar_t * className, const wchar_t * funcName);
static bool Verify( const
-
- Thread Sleeping and Hook Callbacks
by Zyphon
- 14 Replies
- Last post
by Aleksandr Tokarev
- Hey,
I'm working on a Win32 application that doesn't have its own window, but listens to keys typed globally via a LLKeyboardHook and moves the mouse every couple of seconds. In order to keep the mouse from moving all the time, I have the thread sleep for a few seconds in between mouse moves, but during this time the hook callback doesn't execute, which makes sense because the thread is sle
-
- Possible code generation bug with boost::function
by jfire
- 2 Replies
- Last post
by jfire
- Using VS 2005 SP1, the compiler generates a call to the boost::function constructor with a null function pointer argument for the following test case: #include <boost/function.hpp> #include <boost/test/auto_unit_test.hpp> template <class R> R Cast() { return R(); } void Foo( boost::function<unsigned long ()> fn ) { BOOST_CHECK( fn ); } BOOST_AUTO_UNIT_TEST(
-
- Unicode fgetws problem
by Keith Seifert
- 3 Replies
- Last post
by Keith Seifert
- Hi,
I have a function that reads an ASCII file in unicode using fgetws.
I use this function in two different applications and it works just as it should.
I have moved this function to a 3rd application, which is also unicode, compiles and is working with the exception of this function.
fgetws returns no error and fills the buffer with unreadable data.
If I cast a char pointer to
-
- ByVal evt As Object in VC++?
by Cashish
- 2 Replies
- Last post
by Cashish
- What is the equivalent of (ByVal evt As Object) see below, in VC++
Private Sub Button_actionPerformed (ByVal evt As Object) MsgBox evt.toString End-Sub
-
- 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
-
- Copy Listbox item to clipboard(API)
by jackfen
- 2 Replies
- Last post
by jackfen
- I set up a little password generator in Visual C++ using the win32 API for the GUI. Everything so far has worked perfectly, except now I added a pushbutton on the bottom of the dialog which when clicked, I want to copy the contents of the string selected in the listbox to the windows clipboard. Like this:
Code Snippet
case IDC_COPY: { // code to copy selected it
-
- How to debug Release Machine -reg
by ARUVELAN
- 4 Replies
- Last post
by Pintu Shukla
- Hi,
I am having Testing system which was developed in Visual Studio 2005 and naturally that is the release version of the software.
Since I get microsoft error, I want to debug this error.For this , I have installed Visual Studio 2005 in that Testing System.
After this ,when I debug from Microsoft Mesage , it opens Visual STudio 2005 and says that no symbols has been loaded and finally I
-
- generic link error
by IB00
- 9 Replies
- Last post
by IB00
- I have encountered another set of link errors which, at first glance, should not be occurring.
I reported a first set of link errors on March 19, 2007 regarding LNK1120 errors and Jonathan Caves responded by stating the problem occurred because of a ˇ°nasty collision between how C++ works and how CLR properties workˇ±. Are the errors reported here another manifestation of this collisi
-
- Compatibility issues between vc8 & vc9 DLLs & exe
by AjayShrivastava
- 1 Replies
- Last post
by crescens2k
- Hi,
I have my product working with VS2005 on XP.
It has many shared DLLs which are developed by other teams.
I am trying to move to Orcas on Vista, while the teams providing me shared DLLs are not moving to Orcas.
(Some of them might move to "VS2005 on Vista" but NOT "Orcas on Vista")
What can I do to make my application compile and work with some dll
-
- std::vector used as function parameter
by Dalai
- 4 Replies
- Last post
by Dalai
- CMyClass1 has 2 arrays: object1 and object2. would like a member function to add items to each array. In a previous thread we concluded ..
Code Block
class CMyClass1 { public: std::vector<CMyClass2*> object1; std::vector<CMyClass2*> object2; void addNew(void); void createNew(std::vector<CMyClass2*>& object); }
CMyClass1::addNew(void){ createNew(object1);
-
- adding controls at runtime using MFC
by Jim_Fort_Worth
- 6 Replies
- Last post
by kirants
- Are there examples of adding controls to a dialog at runtime using MFC. Example would be adding two or more buttons, textboxes, and checkbox controls.
-
- MultiByteToWideChar
by Asif110
- 3 Replies
- Last post
by Sarath.
- I am calling this function in a function of mine which is returning a the converted WCHAR* string. Is it good pratice to return a pointer variable which is defined locally in the function , secondly I am assuming that MultiByteToWideChar is creating the string on the heap but when I tried to use delete with it, but it gave runtime heap error.
-
- Reading CSV data from a byte array
by Charles Tam
- 7 Replies
- Last post
by Charles Tam
- I'm writing a C++/CLI (vs2005) app and would like to read in CSV data from a byte array.
Is there any .Net classes that I should be using to read the CSV data
If not, what are my options
-
- An integer variable in my application is overwritten somehow
by amicalrahul
- 13 Replies
- Last post
by einaros
- Question:-
A CFormView uses a dialog-template resource. What properties must the dialog-template resource have to work correctly with a CFormView
Choice 1
WS_CHILD on WS_BORDER off WS_VISIBLE on WS_CAPTION off
Choice 2
WS_CHILD off WS_BORDER off WS_VISIBLE off WS_CAPTION off
Choice 3
-
- Looking to buy Visual C++ 2005 Standard, does it exist?
by Jason Doucette
- 9 Replies
- Last post
by Jason Doucette
- I have VC++ 2003 Standard, and I was moving to VC++ 2005 Express, but it doesn't have an unmanaged resource editor, so I have two choices:
1. Find an unmanaged resource editor that works (I've only tried ResEd, so far, and it doesn't work).
2. Purchase the latest VC++ Standard, which is 2005.
I think I want to go with option #2. Is it possible to buy VC++ 2005 Standard by itself,
-
- Run a debug version on a machine does not have vs2005 installed failed
by Gordon999
- 6 Replies
- Last post
by Simple Samples
- Hi All,
I have problem to run a debug version of the executables on a machine does not have vs2005 installed.
I copied everything to a folder including Microsoft.vc80.debugOpenMP, Microsoft.VC80.DebugCRT
and Microsoft.VC80.DebugMFC in that folder. When I run it , it gives me configuration is not right and reinstall may fix this problem.
My project setting is to use MFC in a shared
-
- How to set the path of #import directive dynanically?
by su45937
- 1 Replies
- Last post
by Simple Samples
- when I use #import directive to import a COM library, if the path is certain, I can import it well, but if the path is not certain , i use the following statement ,the program has a error: CString str=GetPathOfComDll(); #import str; Maybe there is another way to set the path of COM library in vc and please tell me how to set the path of COM dll dynamically (I have to get the path from the registr
-
- All the threads that I create with _beginthreadex behave like if it were a single-thread application.
by Tarh ik
- 2 Replies
- Last post
by Tarh ik
- Hi Everybody!!
I have an odd problem, and I think this is more conceptual than an actual coding issue:
I create multiple (and almost identical) threads using the same call back routine so I can have multiple threads to handle a big load of requests... However, if one thread gets frozen, all threads get frozen as well.
I've been trying to figure out what I did wrong, but
-
- Problem buiding RTC example that comes with RTC API SDK 1.3
by Vivekarden
- 1 Replies
- Last post
by DT1020
- Following is the Environment setting for my system..
Microsoft Windows XP Professional Version 2002 Service Pack 2 Microsoft .NET Framework Version 2.0.50727 Microsoft Visual Studio 2005 Version 8.0.50727.42 RTC Client API v1.3 SDK Microsoft Platform SDK for Windows Server 2003 SP1
I have installed RTC Client API v1.3 SDK (C:\Program Files\RTC Client API v1.3 SDK) by down
-
- How to convert binary data to image in VC++ 6.0 - Image to Binary
by anil_842003
- 5 Replies
- Last post
by Mikaell
- Hi all,
I have binary data which is conversion of image save in one file. I have read the file(binary data) and convert the binary data again in image using VC++ 6.0.
*Image has already been converted into binary so only I have to read the binary data and convert into the image and display into picture box in MFC VC++ 6.0
please help me ASAP.
any help will appreciated..
-
- which USB Device is my usb memory stick?
by DarwinMak
- 1 Replies
- Last post
by Damien Watkins - MSFT
- i am writing a program to read some Device information form a usb storage Device .however,i am getting in trouble when more than one usb decivce which are pluged into my pc.i dont know which device information node i need to read.
i solve this problem in XP.Before,i use CM_Get_Parent to get decive node instance handle form a volume path , but it was no longer work in windows vista.
coul
-
- Implementing a Dispose method (IHttpModule)
by TeamWiSE
- 4 Replies
- Last post
by TeamWiSE
- Hello,
I'm trying to write a HttpModule for an ASP.NET Application in C++/CLI, and encoutered a strange problem. The Visual Studio 2005 C++ Compiler refuses to accept an implementation for the IHttpModule: ispose method, and gives me the following errors:
1>d:\work\dll32\runtime\Application.h(212) : error C2039: 'Dispose' : is not a member of 'System::Web::IHttpModule'
1>
-
- What is use of this auto generated code in MFC dialog based application?
by ketu0001
- 5 Replies
- Last post
by Simple Samples
- Hi
I created MFC dialog based application with name as 'newProduct'.
So it generated some files automatically such as-
newProduct.cpp
newProductDlg.cpp
StdAfx.cpp
and header files for all above. I wrote all my code in newProductDlg.cpp.
Can I delete newProduct.cpp and StdAfx.cpp Why these files are required
What is use of this auto generated code in MFC dialog based ap
-
- enum declaration - newbie can't do it! :)
by ProSlamBanO
- 14 Replies
- Last post
by ProSlamBanO
- i'm using VS C++ 2005 native, and I can't seem to get an enum declared. I can do it in a CLI app, but not native C++. There was a larger example in my book, but I can't get a simple app that ONLY declares the enum to compile.
Here's the error. Following is my code. I know the enum declaration is in the main() function; I've also tried declaring just before the main() function.
Thanks in adva