-
- DLL deployment error -2147010895 (0x800736B1)
by Jean G
- 5 Replies
- Last post
by Simple Samples
- On on clean x86 Vista (no VS2005 installed), I deploy a VS2005 project that includes a DLL which requires MSVCR80.DLL & MFC80.DLL. That DLL is to be registed as
COMSelfReg. The setup includes the following merge modules:
Microsoft_VC80_CTR_x86.msm Microsoft_VC80_MFC_x86.msm
When running the .msi, the error -2147010895 (0x800736B1) pops up. A quick DEPENDS look (on Vista) of that D
-
- Can¡¯t use compiler options correctly
by Pharamond
- 5 Replies
- Last post
by Pharamond
- p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin-top:0cm;margin-right:0cm;margin-bottom:10.0pt;margin-left:0cm;line-height:115%;font-size:11.0pt;font-family:'Calibri','sans-serif';}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
{margin-top:0cm;margin-right:0cm;margin-bottom:10.0pt;margin-left:36.0pt;line-height:115%;font-size:11.0pt;font-family:'Calibri','sans-serif';}
p.MsoLis
-
- Difference in Destructor calling mechanism between vc++ 6.0 and vc++ 2005
by Amal P
- 7 Replies
- Last post
by einaros
- Dears,
I have a question regarding the destructor calling mechanism difference between Visual C++ 2005 and Visual C++ 6.0. When i write following code in Visual C++ 6.0 it fails to compile. But when i write it in Visual C++ 2005 it is working well. What could be the reason for this difference The constructor/destructor of virtual base class is called by "most derived class". Her
-
- How do Windows API file functions still have access to deleted files?
by N J
- 11 Replies
- Last post
by Andreas Masur
- I deleted some files (only data and text files, no dlls nor exes) from my application installed in the Program Files folder in Vista. I even removed the deleted files from recycle bin.
But all file functions in Windows API, (e.g. GetFileAttributes, fopen, fread) still have full access to the deleted files. These deleted files can still be read normally as if they were not deleted at all. Un
-
- code can't work in release build
by stanleyheng
- 10 Replies
- Last post
by stanleyheng
- hi all
i wrote a small piece of self modifying code and it can work correctly in the debug build but not in the release build..the release build program crashed..
the code:
int i = 100;
unsigned char *p = ( unsigned char *)0x4113D5;
*p = 0x65;
int j = 100;
int k = i + j;
cout << k;
i have included "/SECTION:.text,ERW" in "
-
- passing a string from/to vba/c++ dll
by Josje
- 5 Replies
- Last post
by Josje
- Hi,
Previously I asked how to speed up and generalise a routine I wrote in VBA (and VBS and XAL( a darker portion of Microsoft our company works with)). Mainly the routine is to pass the next character substring from another character string using a string containing given delimiter characters like space, comma, semicolon, quote, double qoute, carrage return, linefeed etc. I got the answer to w
-
- Visual Studio 2005 professional: mspdbsrv failure -> Sporadic fatal error C1033: cannot open program database
by Alex Tessier
- 20 Replies
- Last post
by Alex Tessier
- I keep getting the following compiler errors, albeit sporadically:
fatal error C1033: cannot open program database "D:\somepath\ps_extrude.pdb"
It appears as though mspdbsrv.exe is keeping file handles between builds open, causing sharing violations with itself.
The compiler is using the /Fd option to specify the pdb file, on a multiprocessor machine using 2 invocations of the c
-
- Location of a DLL
by Jason Wilborn
- 10 Replies
- Last post
by einaros
- I'm using Visual Studio 2005 Standard Edition and I'm programming in C++. I'm running Windows XP. I created a class library and compiled it as a DLL and then I made a simple windows form application to link to and test the functions of the DLL. The DLL works fine with the application and I can compile both with no errors and the functions in the DLL can be called from within the application. The d
-
- Running a very simple Win32 app on a comp without VC++ 2005 Express
by
- 14 Replies
- Last post
by Ted.
- Hi! I have installed VC++ 2005 Express and the Platform SDK according to the instructions on MSDN: http://msdn.microsoft.com/vstudio/express/visualc/usingpsdk/default.aspx Compiling and running the following program on the dev computer works like a charm: http://www.winprog.org/tutorial/simple_window.html I then changed to release-mode, turned off debugging in the project properties and copied t
-
- Small executables
by Dato0011
- 3 Replies
- Last post
by einaros
- Hello. I'm working on a project where file size matters. I'm compiling an empty project about 6-7 kb-s. is there anyway to get smaller file
-
- more Textboxes saving to a file
by PRima
- 2 Replies
- Last post
by PRima
- I have to do a singly linked list,with windows forms application, i have till now this: I have in the main Form1 some buttons, when i press the first button i open a new form2 and in this one i have 2 textboxes in which i fill the data (name and age) , i have problem saving the text from the 2 textboxes to a .txt file, and when i put some other data in the textboxes i want my old records that are
-
- "Goto Definition" sometimes doesn't work
by Jim Fr
- 3 Replies
- Last post
by Ayman Shoukry - MSFT
- In VS2005 SP1, "Goto Defintion" sometimes works fine, other times it takes me to the declaration, not the definition. Sometimes it brings up a long list of possible definitions for me to choose from (as versions previous to VS2005 would do) where there should be no reason to ask me. This is happening even on normal class method names. Sometimes deleting all target files including the .BC
-
- [Help] Out of Memory
by Pogolin
- 9 Replies
- Last post
by Pogolin
- Hi all,
Recently, I have encountered a problem and I tried to debug it. I found that system throw out a CMemoryException when I try to allocate 256MB memory.
I have a member function in one class . see the below list.
ClassA:ClassA()
{
...
mImage = NULL;
...
}
ClassA:~ClassA()
{
delete []mImage;
}
bool ClassA : FuncA()
{
...
try {
unsign
-
- Re-Building VS6.0 apps with VS'05?
by Seabhacre
- 4 Replies
- Last post
by Simple Samples
- Ok, so I've re-built two VS6.0 C++ apps (one Service, one MFC GUI). I made changes where breaking-code in CRT made it necessary. Managed all the security aspects of this 'update' (strcpy() -> strcpy_s() etc.) and produced clean builds for all configurations. However when I install the apps on an 03' Server and attempt to launch either one I receive the following error message:
Erro
-
- Comapring strings?
by Theillbehaviored
- 4 Replies
- Last post
by Allaudeen_N_ff93ad
- How do I make it so the user can type in a string in a console application and it will give a response For example if the user typed "Help" It would display a help file
-
- Importing, compiling and running source code
by ron.photog
- 3 Replies
- Last post
by Damien Watkins - MSFT
- Okay, so I've downloaded some source code off the net, can someone pls tell me how to get it into visual c++, compile it and run it ... can't seem to find this info anywhere.
Desperately yours,
ron.photog
-
- DLLMain defined in .obj file?
by georgeob
- 11 Replies
- Last post
by georgeob
- Does anyone know if when you use the wizard to create a dll in visual c++, it puts the definition of DLL_Main in the Project_Name.obj file I get an error when I add in a definition of it in the cpp file, saying its already defined in the obj file. It's not in the cpp file when I first create the workspace.
-
- Change in behavior of properties from VC7.1 to VC8
by DMillerNCR
- 7 Replies
- Last post
by yellowbillycat
- In VC7.1 in the property pages for a project, if I entered a relative path for an include file on the "Additional Include Directories", then the IDE showed valid paths relative to the project file. In VC8, relative paths are all relative to some path in the install directory NOT my project. How can I get the VC7.1 behavior This new behavior is not intuitive. I never place my files relat
-
- how to use .swe database
by paintok
- 2 Replies
- Last post
by paintok
- does anyone knows how to access or update data from a ( .swe ) database using MFC
tanks a lot
-
- IXMLHttpRequestPtr and OndataAvailable
by AlpanaDhole
- 2 Replies
- Last post
by Ayman Shoukry - MSFT
- Hi
I have to implement Asynchronous data download using IXMLHttpRequestPtr. Please let me know if it is possible and how do I implement OnDataAvailable.
How does IXMLHttpRequestPtr get hooked to OnDataAvailable
The application that has been develeoped is ATL control for Drag and Drop attachement from Mail Server.
When the data is being downloaded from the server it should download in
-
- MFC-How to add CDialog into CPropertySheet
by leon123
- 10 Replies
- Last post
by Simple Samples
- I want to add dialog(not CPropertyPage) into propertysheet. Is it possible And how to make it.
Thanks!!
-
- C3851 compiler error
by Trifon Triantafillidis
- 2 Replies
- Last post
by Trifon Triantafillidis
- Hello,
I need to define a long string constant (>500 chars) that contains some illegal characters. The equivalent C# syntax is something like
Code Snippet
String s = "\u0024\u006D\u007C\u002B\u006D\u0044\u0060\u0063\u006C\u0078\u0061\u0044\u0045\u007A\u005E";
The following syntax in C++ throws a c3851 compiler error:
Code Snippet
String^ s
-
- Are the following two functions correct?
by daniel mark
- 2 Replies
- Last post
by Simple Samples
- Hello all: It is not good to return a reference or pointer to the local variable. My question is the function 'beginComment' and 'endComment' are correct functions If anyone is correct, why Thank you #include <iostream> #include <vector> using namespace std; const char * beginComment() { return "["; } const char * endComment() { char * p = "]"; return p; } i
-
- Where can I download old versions?
by sQUEEK559003
- 8 Replies
- Last post
by sQUEEK
- Hello, i was just wondering if i could download
Microsoft Visual C++ 6.0 somwhere, i can't find it anywhere. Thank you, Daniel Cove
-
- How can I do asynchronous socket proramming in console application?
by Sushantp
- 4 Replies
- Last post
by Viorel.
- I was trying with using WSAAsyncSelect , but it requires handle parameter of the window to which the message will be sent when an event occurs. So how can I get handle of a console application Or there is some other way to do asynchronous socket programming in console application. Thanks.