-
- operators overloading
by Indiana
- 1 Replies
- Last post
by Holger Grund
- I found strange behaviour where debugging one of my classes. Here is the code
Code Snippet
RGB<double> a_ = static_cast<RGB<double>>(a); RGB<double> b_ = static_cast<RGB<double>>(b); 1) double bbbb = (a_*2.0).b; //ok 2) RGB<double> aa = a_*2.0; //wrong 3) RGB<double> bb = b_*2.0; //wrong The problem is that although in first case the b
-
- Changing .exe icons
by Erazza
- 11 Replies
- Last post
by Erazza
- How do I change exe icons in C++
-
- problem with richtextbox
by DoanHaNam
- 3 Replies
- Last post
by DoanHaNam
- RichTextBox^ richtext1 = gcnew RichTextBox;
richtext1->LoadFile( "c://test.rtf" );
Controls->Add(richtext1);
The result of error
An unhandled exception of type 'System.ArgumentException' occurred in System.Windows.Forms.dll
Additional information: File format is not valid.
my solution : tried I have tried to change file format to txt but error is still t
-
- C++/CLI dll will not load in C# project (repost, with more info )
by cgraus
- 14 Replies
- Last post
by TranThanh
- I have written some code to create high dynamic range images in C++. I need to call this code from C# now, so I've wrapped it using C++/CLI. I've tested it, and it works well. I sent it to my employer, and he got this error: ************** Exception Text ************** System.IO.FileLoadException : Could not load file or assembly ' HDRLib , Version=1.0.2144.16487, Cultur
-
- Failed To Find Module - C++ Interop problem...
by GordonTWatts
- 9 Replies
- Last post
by GordonTWatts
- Hi,
I'm not 100% sure this is the right forum, so let me know if I should repost.
My program is issuing a FileNotFoundException when trying to load ("The specified module could not be found. (Exception from HRESULT: 0x8007007E). I can't, for the life of me, figure out how to determine what DLL ( ) it is trying to load to understand where things have gone south. Any help would be a
-
- Problem using boost::thread in CLR Class Library in Debug Mode
by John Dunn
- 4 Replies
- Last post
by Brian Kramer
- I've written a simple CLR object to wrap a boost::thread and have referenced this object in a C# console app. If I run the C# app in release mode everything works perfectly. If I run the debug version I get the following -
A first chance exception of type 'System.BadImageFormatException' occurred in mscorlib.dll
An unhandled exception of type 'System.BadImageFormatException' occurred in msc
-
- Does Com object cache data?
by Mannee
- 1 Replies
- Last post
by Peter Ritchie
- Hi! I need to call COM object (created in .Net) from the C++ level. When I declare a new object of the COM Interop , do I create a new instance of the .Net code or am I still working onthe same (cached) piece of code and values related with the object The way I call the COM Interop: (<classname.h>) #import "<Interopname>.tlb" using namespace <Interopname> <classname
-
- Getting error when trying to add web reference
by webservicesprogrammer
- 0 Replies
- Last post
by webservicesprogrammer
- I'm trying to the eBay web service (watch out; it's big!) with MFC. I am using Visual Studio 2003. When I add the web reference, I get the following error:
Code Block d:\My Documents\Visual Studio Projects\web reference\eBay\ebaySvc.wsdl(6,24) : error SDL1005 : unrecognized tag, with [ namespace = " http://www.w3.org/2001/XMLSchema " '>http://www.w3.org/2001/XMLSchema&
-
- best practice for storing recent files used by my application
by baxybaxy
- 5 Replies
- Last post
by baxybaxy
- Hi all,
I have a pretty typical application where the user can choose from of a series of files to open.
I would like to add a 'recent document'* facility to this, in common with apps such as excel, word etc
There would appear to be a load of ways to do this and I'm not sure which road to start down
Can anyone advise on whether there is a best practice for this (in orde
-
- Build dll in VS2005 to work on Win95
by ryan0270
- 12 Replies
- Last post
by Simple Samples
- I need to write a c++ dll that will be loaded by software running on Windows 95 from a VB-ish application. I have the .dll written and working on Windows XP and Windows 2000. When I try to load the .dll in Windows 95 I get an error saying that the .dll could not be found. If I try regsvr32 c:\DLL.dll I an error "GetLastError return 0x00000485" which, according to MSDN , means that it co
-
- I Need to make the CListCtrl non sortable at run time
by xpert001
- 2 Replies
- Last post
by xpert001
- Hi Dear, I need to make the report view of the list control non sortable( Disable Sorting) at run time. But i could not find out any API. I tried to set LVS_NOSORTHEADER in PreCreateWindow() but it is making the list view non sortable all the time. I need to make it Non soratble only at run time. Like if I click on a particular node in a tree view then the list view dispalyed corrresponding to tha
-
- How to change build log filename?
by VoiceOfExperience
- 4 Replies
- Last post
by Viorel.
- Every time I do a build of my solution, builds of successive projects produce logs of the same name, BuildLog.htm. I want to have them each named differently, so they are all preserved. How can this be done I can't find any option to change the build file name for a project, or even the directory for a project, and I don't want to build each project separately, then rename the file, etc.
-
- FSCTL_LOCK_VOLUME
by Kumar Puran
- 6 Replies
- Last post
by Damien Watkins - MSFT
- I want to lock a volume using FSCTL_LOCK_VOLUME. This is working fine until there is no file open from that volume.
How can i lock the volume, even if soem files are open
Kumar
-
- Input/Output (save/load files)
by Jerry584894
- 8 Replies
- Last post
by Simple Samples
- this is my file:
Code Snippet
#include <iostream> #include <cstdlib> #include <string> #include <afxwin.h> using namespace std;
void main() { char* pszFileName = "\test.dat"; CFile myFile;
if ( ! myFile.Open( pszFileName,CFile::modeCreate | CFile::modeReadWrite)) { TRACE( "Can't open file %s\n",pszFileName); } }
Howeve
-
- Need help with translation from C#
by Modeller
- 5 Replies
- Last post
by JeroGrav
- Hi!
How do you convert the following into Managed C++
try{
/// Something here
}
catch (Exception e) /// Catch the Exception ^e here
{
if (e is MediaNotFoundException) /// How do we say it in Managed C++ Any suggestion
{
/// Do something here!!
}
}
Regards,
M.
-
- Sending Commands to any Process
by Schlurmann
- 10 Replies
- Last post
by Schlurmann
- Hello, I've been trying to send Commands like BM_CLICK or WM_LBUTTONDOWN or whatever to any applications. It worked pretty well when I could figure out the Class of a Button or Edit or somethign else, but now I got a window whose elements I can't get by using Spy++. I tried to filter all messages, but mouse clicks/movements always are 0x00FF -> unknown messages with wParam 0 and lParam is some
-
- 64 bit XP and system32 folder
by xMonty
- 5 Replies
- Last post
by kirants
- This Code fails on XP 64 bit even if the file exists in the target folder
The exe is 32 bit
CString str;
str = "C:\\WINDOWS\\system32\\drivers\\acpi.sys";
if(!PathFileExists(str))
{ //Fails but the file exists and can be seen in explorer
}
i can paste any file in that folder (text file or whatever) and the result will be file not found (errcode=2)
-
- MFCWinFormsSample causes Access Violation on exit
by Martin Koorts
- 4 Replies
- Last post
by Martin Koorts
- Hi
I'm looking at hosting a .NET UserControl in an unmanaged application and the MFC sample MFCWinFormsSample appears to do the trick with the CWinFormsView class.
However, it causes 2 Access Violations when it exits - somewhere after CWinApp::ExitInstance has completed and the process terminates.
Has anybody noticed this Is it just my configuration
I'm using Visual Studio 2005
-
- Illegal System DLL Relocation (user32.dll)
by dbabobw
- 14 Replies
- Last post
by David
- Similar issue after install of latest XP update; states that C:\windows\system32\HHCTRL.OCX occupied an address range reserved for Windows system DLLs.
-
- Trying to compile an evc++ 3/4 project
by tirengarfio
- 2 Replies
- Last post
by Bite Qiu - MSFT
- Hi,
Im trying to compile an evc++ 3/4 project and im getting these errors below.I think im not including something (a file maybe) to the project. Can you help me
PD: I know this is not the best place to ask this question, but i didnt find any forum about eVC++ 4 at msdn.
Code Snippet
Compiling resources... D:\Archivos de programa\Windows CE Tools\wce400\STANDAR
-
- Import Native C++ dll in Managed Project
by A.Russell
- 14 Replies
- Last post
by A.Russell
-
I have some code which needs to be native that I am trying to include in a managed c++ project via a pluggin.
It can't be added to references. The syntax for loading it manually, [DllImport("ArmWrp.dll")], is fine, but the functions cannot be found. Here is the simple pluggin, it is compiled with the unicode setting:
// ArmWrp.cpp : Defines the entry point for the DLL applicat
-
- Building Driver... (Visual C++ 6)
by Rinnn
- 4 Replies
- Last post
by superdos
- Hi all. Sorry for my bad English
When I try to load Driver, StartService return 0 0000002
Why Where I made mistakes
-----------------------------------------------------------------------------------------------------------------------------
Compiler Options:
/nologo /MLd /W3 /Zd /Od /Ob1 /Fp"Debug/driver.pch" /YX /Fo"Debug/" /Fd"Debug/" /FD /c
-
- Regular Expression in Visual Studio-2003
by Yogi Watcher
- 2 Replies
- Last post
by Yogi Watcher
- Hello,
Which class header file do I include to use regular expressions in my C/C++ programs
Thanks
-
- /O2 causing "index out of array bounds" exceptions
by bmw2012
- 11 Replies
- Last post
by bmw2012
- This problem is driving me nuts. I have a Windows Form application in C++ using entirely managed code.
At a particular point in the execution of the program (near the end.) one of my class methods generates an "index out of array bounds" exception. This occurs at the start of the method, where I re-initialize an array of integer counters to 0. I've even gone to initializing all e
-
- create a child window that is join side by side to parent window
by roychoo
- 3 Replies
- Last post
by roychoo
- Hi,
i do not know whether is this the way to ask this question. i am actually creating a window extension in IE. And i am required to create another window that will be join side by side to IE (even on resize) i have saw it somewhere b4 that it is possible but i do not know how to.
PLease help as it is my final year project
Thanks
Regards
Roy