-
- DLL Import
by CrackerJack
- 12 Replies
- Last post
by CrackerJack
- Hello there! I have a program and a DLL that I'm writing; they are both separate projects in the same solution. I added the DLL project as a reference to the program project, but whenever I run the program I get an error saying it cannot find/load the DLL. I can fix it by manually copying the DLL file into the output directory of the program. Is there a better way to do this, i.e. having Visual St
-
- Disable Build Log
by johnmarco
- 4 Replies
- Last post
by johnmarco
- Is it possible to disable the creation of the build log I never read this log and I hate waiting the extra .0000005 seconds for it it to write. I'm talking about :
Build log was saved at file://c:\Documents and Settings\UserName\My Documents\Visual Studio 2005\Projects\CS2\Lab_2\Debug\BuildLog.htm
-
- Not able to call a dll's exported function in run-time dynamic linking
by Bassam72
- 9 Replies
- Last post
by Simple Samples
- Dear All,
I have just started learning DLLs by reading the msdn tutorials and other resource on the net by using Visual C++ 2005 express edition as a building tool. I have successfully build a simple DLL the contains two functions and I have successfully called either functions in load-time dynamic linking. However, I am still not able to call these functions in run-time dynamic linking althoug
-
- listing Dir, will not read C:\System Volume Information
by Guy DeStefano
- 22 Replies
- Last post
by Guy DeStefano
- Using VS 2005, with C++ coding, I am trying to list the entire directory. All is good except, I cannot bypass the directory folder ( C:\System Volume Information ). The XP/2 Op sys lists
1. C:\Support
2. C:\Support\Tools
3. C:\System Volume Information
4. .....
I list all files from C:\ ( want to list until the end of all )
I get:
1. C:\Support
2. C:\Support\Tools
-
- Difficulties with error codes C2504 and C2248
by B McDowell
- 6 Replies
- Last post
by B McDowell
- Hello, I am currently having two errors that I just can't seem to figure out. The first is error code C2504 " 'Expr' base class undefined" and the second is error code c2248 " 'Expr' :: 'Expr' cannot access private member declared in class 'Expr'."
My program uses a hierarchy of classes to store mathematical expressions, which can be evaluated using a visitor class. Expr
-
- Link Error when using Template in C++/CLI
by antoinec
- 1 Replies
- Last post
by Marina Polishchuk [MSFT]
- Hi all! The following code:
Code Snippet
// CLR_Template.cpp : main project file. #include "stdafx.h" using namespace System; ref class cBaseClass { public: cBaseClass() {} public: virtual void Virtual01(void) {} }; template <typename T> ref class cTemplateClass01 : public cBaseClass { public: cTemplateClass01() {} public: virtual void Virtual01(void) override {} }; r
-
- ActiveX
by Anatoly_H
- 0 Replies
- Last post
by Anatoly_H
- Hello
I have MFC ActiveX object(a.ocx). I need to recompile it to new name(b.ocx) and new GUID (to put them in system32 folder and register each of them to registry.
In Visual studio:
1. I changed Output file neme.
2. I changed GUID number.
3. Compilation and link passes.
When i'm trying to register it' i have an exeption.
What is the right way to "clone"
-
- Trouble loading Indesign plugin, created in Visual Studio 2005 (C++)
by PaalN
- 4 Replies
- Last post
by PaalN
- Hi!
Im new to Visual studio and I have only a 90 day trial version.
I'm trying to build a sample Indesign plugin with the SDK for Indesign CS 3 that should generate files in the following folders:
Debug: <SDK> \build\win\debug\sdk
Release: <SDK> \build\win\release\sdk
The build is okay, but the release folder is not created. In the deb
-
- Remaining process memory
by Ben564604
- 3 Replies
- Last post
by Damien Watkins - MSFT
- How do I determine how much more memory my process can allocate
The most useful info so far seems to be use...
GlobalMemoryStatusEx() to get
MEMORYSTATUSEX.ullTotalVirtual
MEMORYSTATUSEX.ullAvailVirtual
and ...
GetProcessMemoryInfo() to get
PROCESS_MEMORY_COUNTERS.PagefileUsage
I think ullTotalVirtual is the maximum amount of memory my process c
-
- COM
by YaelS
- 4 Replies
- Last post
by Ted.
- Hi,
I want to call & use com object in my mfc project.
stdafx.h:
Code Snippet
#import "C:\Documents and Settings\Owner\Desktop\SMS\Debug\SMSCom.dll" no_namespace named_guids
_COM_SMARTPTR_TYPEDEF( ISMSSenderPtr, __uuidof (ISMSSenderPtr));//
MyApp.Cpp:
Code Snippet
void CSmsApp::createSms()
{
HRESULT hr = Co
-
- fatal error LNK1257: code generation failed
by el_fuerte
- 3 Replies
- Last post
by Ramkrishna Pawar
- hi everybody
i'm trying to do an aplication in VC++, to interact with cameras i'm using VFW and MIL at same time
when i try to run the project a error is lauched.
->fatal error LNK1257: code generation failed
i have no idea what might be...
if anyone possible knows a possible cause for this, replu to me please
Thank you
-
- Async named pipe functions
by zbenjamin
- 14 Replies
- Last post
by Simple Samples
- Hello, is there a way to get a async notification from a named pipe handle that new data is available to read. A message or a event would be okay. i know i can wait with ReadFile for available data. But if i want to use named pipes in a gui application with that would block my application loop. regards zbenjamin
-
- Image on title bar
by Sreedhar DVS
- 4 Replies
- Last post
by Nishant Sivakumar
- I have a SDI application. I need to display image on the application title bar. I am not looking for skinned application. But I need to place an image on the title bar beside the minimize & maximize buttons. Anyone please tell me how to draw on the title bar of the application.
Thanks & regards,
Sreedhar
-
- HI
by baigana
- 1 Replies
- Last post
by Sdi
- I am having a code to dock windows. While compiling i am getting the error rror C2504: 'CSizingControlBarCF' : base class undefined. Can anyone guide me on this.. I am using VC++ 6.0
-
- How to read the Link Error message?
by daniel mark
- 7 Replies
- Last post
by Damien Watkins - MSFT
- Hello all: I find it is quite hard to understand the Link Error(I use VS. Net 2005 Professional). If I include the following operator member function in the file "Triangle.cpp" rather than in the file "Triangle.h". inline bool Triangle::operator==(const Triangle &rhs) const { return (_length == rhs._length) && (_begin_pos == rhs._begin_pos); } Then call it by usin
-
- Unable to build even "Hello World!" in VS 2005.
by snakekiller
- 10 Replies
- Last post
by snakekiller
- Greetings! I have VS 2005 with only VisualC++ and Crystal Reports installed and I'm getting the same message every time I try to build something: SXS: Unable to resolve storage root for assembly directory x86_Microsoft.VC80.DebugCRT_1fc8b3b9a1e18e3b_8.0.50727.762_x-ww_5490cd9f in 2 tries SXS: RtlGetAssemblyStorageRoot() unable to resolve storage map entry. Status = 0xc0150004 No "Merge Enviro
-
- List Box
by brahle
- 5 Replies
- Last post
by brahle
- Hello! I would like to read some text from a file and then write it in a list box. I have read the data to a vector< string >, but I don't know how can I add a string (or a char*) to a list box. Can someone please help me
-
- SerialPort DataReceived Event: What's wrong with this code?
by Scott_N
- 1 Replies
- Last post
by Scott_N
- I am new to C and am trying to write a simple program to read from the SerialPort using the .NET component. I have yet to find any complete samples on using the SerialPort component in VC++ but I have managed to piece together some code from different Forum Posts. With this code I can Open COM1 and write something out it but I can't seem to read anything in. I don't get any Compiler/Debugger error
-
- Namespaces System.drawing
by Maria G. Valdes
- 3 Replies
- Last post
by Alex Farber
- hi, I recently started using Visual C++ 2005, and I'm trying to work with BITMAPS to get pixel information, I had started a thread about that topic but now I have a more general question about namespaces, I was wondering if to include the system.drawing namespace I must be in a CLR project.
Is there another way to use the bitmap class and other namespaces like system.something
Thanks
-
- How can i restrict textbox to number?
by Asuran
- 3 Replies
- Last post
by Sdi
- Hi guys, I am new in c++ and Visual c++ and I'd like know how i can restrict my textbox to number. The user can only write number( int or float) in textbox. help pls
Thanks for atenttion
-
- Macro _WIN32_WINNT value for Windows PE 2.0
by Kannan572128
- 4 Replies
- Last post
by Kannan572128
- I am building a software that needs to be run on Windows PE 2.0. What should I define _WIN32_WINNT as The MSDN page http://msdn2.microsoft.com/en-us/library/aa383745.aspx is not mentioning Windows PE 2.0.
Of the "regular" OS, the minumum requirement I need is that the software should run on Windows 2000. I am not sure Windows PE 2.0 will shoulder with Windows 2000 or XP or Vista.
-
- difference: SplitButton and DropDownButton
by bucz
- 1 Replies
- Last post
by Bite Qiu - MSFT
- As above. What is the difference between Splitbutton and DropDownButton for a ToolStrip
-
- How to location problems with L"Buffer is too small && 0"
by rogerwux
- 12 Replies
- Last post
by rogerwu
- Do anybody know exactly how to find such problems
with L"Buffer is too small && 0" as VS2005 only
tells us something like:
Debug Assertion Failed!
Problem: ...
File: ..\tcscpy_s.inl
Line: 30
Expression: ("Buffer is too small && 0" )
Actually I do NOT know how to find out exactly
the code which causes the problem.
strcpy_
-
- Question About C++
by Random-1324
- 7 Replies
- Last post
by Simple Samples
- Hey, I have a question about C++. When I make a code and I compile it, how do I get the .exe Like the program of it and not the code. Also, if I give the program to someone else, do they need anything for the program to run, and can they view the code Thanks in advance for anyone who helps me out!
-
- where i get the complete sdk documentation offline ?
by dodo502b
- 3 Replies
- Last post
by SvenC
- Hi there,
i am a software developer since 10 years. More and more it looks like to me, that Microsoft dont want to support real c++ developer. for example i can't find any documentation about direct show in the offline documentation installed with visual studio .net 2005. I only find it online.
Does anybody know, how i can install the complete microsoft sdk's onto my pc Because Onlin