'??' gets converted into '^' if I compile mn VC++ program and run it
e.g.
sprintf( ch, "??")
prints out
^
But if I run the same code in Turbo C/C++, there is no such problem. Why is it happening on VC++ on Windows?
...
Hi, im using C# dll in VC++ application.I have somedetails in VC++ like
PageNumer
pageTitle
PageDesc
BoxDetail
I have to pass this to C# Dll.
So i made one structure in VC++,then i pas that to C#.But i could't do that.Pls help mw.
VC++ Function:
struct SCS3OverVwPg
{
__int32 iOvrPgNo;
char sOvrPgTitle[30]; //OverView Pa...
Can someone pls tell me do we have solic & unsolic message/events in MFC or window programming?
In devices solic response and unsolic response is said as immediate response (like acknowledgement to commands) and late response (generated without any further commands being sent) respectively.
Likewise can we say events as solic / unsolic...
In a visual C++ mfc program, which I run on Wondows 7, I always get the error message This Program Has Stopped Working after I close the main dialog/exit the application. But it doesn't happen in Windows XP. Can anyone explain what the matter is and how to solve it?
Thanks a lot.
...
I am compiling idl file using MIDL compiler and generating header file. I need to get smart pointer implementations for interfaces defined in my idl file. How to get smart pointers for my interfaces by compile idl using midl?
...
Hey folks,
Been messing about with this all day and haven't got anywhere so I'm hoping someone can help me - I have a HeapReAlloc method failing with the error ACCESS_VIOLATION, but I'm unsure how to implement a further check using GetExceptionCode as it uses try/catch or exception or something - can someone give me a quick example of h...
How to get Hidden Partitions in the Harddisk in VC++?
Does any one knows this. please share info....
Thanks in advance.
~Hara
...
Where can I find books that help me build GUIs with Visual C++?
...
Does anybody have an example of working with database using Visual C++ and OLEDB? What should I include on top of my code?
I have searched the internet and most examples are using C# or VB. Examples written by C++ are usually not complete.
I really appreciate your help.
Best,
Shadi.
...
I am trying to compile a program I took off a cd from a book that uses directx to render 3d objects. when i press compile I get the following error
C1083: Cannot open include file: 'dxerr9.h': No such file or directory
I am using VC++ 2008 Express Edition and i am running off of Vista. I went to the following folder
[edit]
C:\Prog...
// dll
#include <memory>
__declspec(dllexport) std::auto_ptr<int> get();
__declspec(dllexport) std::auto_ptr<int> get()
{
return std::auto_ptr<int>(new int());
}
// exe
#include <iostream>
#include <memory>
__declspec(dllimport) std::auto_ptr<int> get();
int main() {
{
std::auto_ptr<int> x = get();
}
std::...
I have an ASF file which contain 8 audios and 1 video. Now i want to merge this file with other of same ASF type. Is it possible to do with windows media SDK.
My language is VC++
Please give some help
...
I have captured total desktop using CPP, COM and DirectShow. But how can I capture particular window only?
...
Hi,
I want to create a simple COM component in VC++ 2008.
I have created ATL Project with all default options.
I have added Simple ATL object (interface IDemo).
Now I want to add a methos inside IDemo.
But the "Add Method Wizard" does not allow me to add out/retval type of parameters to the method.
I can add in type of parameters.
Is i...
i want to enter a text into TCHAR* argv[], how its possible to do.
OR how to convert from a character to TCHAR* argv[].
Please help
char randcount[]="Hello world";
want to convert to TCHAR* argv[]
...
When we create a DLL using Visual studio (VC8 or 9), we get an option as
create Regular DLL
using MFC as shared DLL
or
using MFC as static library
How are they different? Which one is advisable to use?
...
I'm reviewing a C++ project and see effectively the following:
std::vector<SomeType> objects;
//then later
int size = (int)objects.size();
for( int i = 0; i < size; ++i ) {
process( objects[i] );
}
Here's what I see. std::vector::size() returns size_t that can be of some size not related to the size of int. Even if sizeof(int) ==...
I have this code written in MFC as a win32 application:
CZoneThread* pThread = new CZoneThread( sZoneInfo );
pThread->CreateThread();
Here, CZoneThread is another class.
Will this code work correctly in WinCE as well?
...
I've built a C++ application using MSVC 2010, default compile settings (note: Using "Multithreaded" instead of "Multithreaded DLL" to avoid the Microsoft C++ runtime being needed).
I used only the STL and a few, old functions from the Win32 API (Windows.h).
Where will my app run? (98-7?)
Can the be any differences on how my app works ...
I currently have a console project which creates an .exe file; I want it to also create a .lib file so other projects, compiled as DLLs, would be able to call functions from the original project.
I know it is possible, but I couldn't find how to do that. How do I tell the linker to also link a .lib?
...