Hello,
I'm having a macro like this ( not exactly, but function is quite equivalent):
#define STRUCTMEMBER(Member,Value) GlobalStructInstance. ## Member = Value
...
STRUCTMEMBER(Item,1);
This works perfectly in Visual C++, but gcc 3.4.5 (MingGW) yield the following error:
pasting "." and "Item" does not give a valid preprocessing to...
First off , I'm referring to a Windows environment and VC++ compiler.
What I want to be able to do is rebuild a Vc++ dll and maintain compatability with an exe that has already been linked to the lib without having to rebuild the exe or load the dll dynamically using LoadLibrary. In other words, is there a way to add classes and methods...
When creating a DLL with Visual C++ 2008 I have a couple of choices. I can create a "Class Library", which I understand will actually give me a .Net Library that uses the CLI (managed) extenstion of C++.
Since I don't want that, and I assumed that I need a static .LIB file to link into another Visual C++ windows executable project, I c...
I'm using Visual Studio 2005.
------------------------[ luapassing.cpp ]--------------------
#include "lua.h"
static int myCfunc (Lua_State *L){
double trouble = lua_tonumber(L,1);
lua_pushnumber(L,16.0 -trouble);
return 1;
}
int luaopen_luapassing (Lua_State *L){
static const lua_reg Map [] = {{"dothis",myCfunc},{NULL,NULL...
I am trying to create a custom CStatic control in vc++ and have a few problems. I originally was just using a CStatic control with the SS_BLACKRECT style. This was good for the situation until I needed to display an image over the control on demand. I figured out all the logistics behind actually drawing the image onto the control but I ...
I'm trying to add a menu item such that it acts like a check mark where the user can check/uncheck, and the other classes can see that menu item's check mark status. I received a suggestion of creating a class for the menu option (with a popup option), however, I can't create a class for the menu option when I'm in the resource layout ed...
Mine is activex plugin which generates .ocx file. when i opened with dependency walker it shows it depends on MFC90.dll and MSCVR90.dll. it is there in amd64_mfc and amd64_crt folder.
MFC90.dll depends on MSVCR90.dll and it shows it is not found even though it is there in amd64_crt folder.
Meanwhile i installed VC++ redis package it ha...
I have an application that loads "aaa.dll". "aaa.dll" loads two other dlls "bbb.dll" and "ccc.dll".
aaa.dll is a third party dll not written by myself. But bbb.dll and ccc.dll are written by me.
Is there any way for bbb.dll and ccc.dll to communicate with each other? Pointing to any resource will be very helpful.
Type of communication...
I'm new to vc++ language so I want to get system unique id using vc++ language. so please can anybody help me in coding how to get system unique id?
...
We have a native C++ application running via COM+ on a windows 2003 server. I've recently noticed from the event viewer that its throwing exceptions, specifically the C0000005 exception, which, according to http://blogs.msdn.com/calvin_hsia/archive/2004/06/30/170344.aspx means that the process is trying to write to memory not within its ...
I want to be able to modify the application's language programatically, or at least use the language specified in Control Panel -> Regional and Language Options -> Formats.
If I add an english string table, make a french and a german copy of it, and delete the english one, I can programatically switch between loading the french and the ...
I'm coming from a Linux background, but I'd like to provide a version of my software on Windows. For users to run my program, they will need the Visual C++ redistributable. I would like to provide it for them as part of the package.
My worry is that there, in the future, will be an SP2 of the Visual Studio 2008 Redistributable. If I ...
Background
My solution consists of two projects:
A standard Windows application
A DLL which my application does not use directly, but instead injects it into a target process
Basically, from my application's perspective, the only requirement that the DLL must meet is to be present in the working directory of my application. In short...
I can only find references for small c. I assume that the capital C is for Unicode, but I'm not sure. For lower numbers, both output the same character.
...
how we can find the application program if we know port number and ip address in visual studio
...
I have one dll of cpp and i need to call its function which returns char*. Im using String in native Declaration but getting out put like ???? or some crap thing. I just want to knw that do i have to decode the String.i have already set my system property like System.setProperty("jna.encoding","UTF-8");
Im in big mess. Hope to get Some P...
I have installed in my PC VS2008 and Windows Mobile 6 SDK.
I have made a SmartDevice MFC application and a Regular DLL MFC, both uses shared MFC DLL.
But when I called DoModal() of the DLL the application hangs, show a "Debug Assertion Failed" message and freeze my device.
Can you help me?
Codes:
The EXE code:
typedef BOOL (CALLBA...
When creating menus with submenus in Visual C++, I find that submenus begin as arrows that I must click to expand to see their contents. Is there a way (programmatically) to have the submenus pop-out already expanded (with no arrow to click)?
Here is an image of what I am talking about, before and after clicking aforementioned arrow:
...
Hi All,
I have a property grid on the right side of my app. By clicking on a tree item on the left side, properties of the clicked item are shown on the right side. However, whenever I change the value on the property grid control, the items turn in BOLD format and I get an error pointing to line 154 of MFC's afxpropertygridtooltipctrl....
In my quest to use an OCX file as a resource in my project, I initially started to use Visual Studio C++ Express Edition which easily allowed me to add the OCX file as a resource and view/utilize its functions. However, upon upgrading to Visual Studio 2008, whenever I try to use the OCX file as a resource (in C++ mode) it asks for a bui...