I'm looking for a simple example code for C++\IronPython integration, i.e. embedding python code inside a C++, or better yet, Visual C++ program.
The example code should include: how to share objects between the languages, how to call functions\methods back and forth etc...
Also, an explicit setup procedure would help too. (How to incl...
As most know getch waits until the user hits a key and then returns the value. Is there a way in order to just check if the user is currently hitting a key? Here is what I'm trying to do:
while(1){
char x = getch();
if (x){
//blah
}
else if(y == true){
//blah
}
}
Any suggestions?
...
I understand that the fastest and the most lightweight binary at windows generate only msvc compiler
Express edition of msvc is free
http://www.microsoft.com/express/windows/
but how to use cl.exe instead of g++.exe?
is it possible in common by using GNU make variables produce makefiles which will works with cl.exe and g++?
for examp...
I am not sure if I am missing something, but for the life of me I cannot get the grid to be editable.
All I am doing is loading a file to a Dictionary, then binding that Dictionary to the grid.
The grid displays the data in the Dictionary, but I cant edit any data in the grid.
I tried changing the modes also:
EditOnEnter
EditOnKe...
ok im not expecting to get answer fast. does directx 9 have function that will stop or pause animated mesh. i need an example how the function works or it is useless.
thanks in advancee
...
Hi all,
i've converted a my application originally written in MS Visual Studio 2008 to be compiled on MS Visual C++ 6.0 (see my previous question http://goo.gl/lWyM).
After the conversion of all my code now compiles in Release, without debug informations. In Debug i encounter a strange problem... the error C1063.
fatal error C1063: ...
In MSVC++ you can summon a console window to your app by running:
// Attach a console
AllocConsole() ;
AttachConsole( GetCurrentProcessId() ) ;
freopen( "CON", "w", stdout ) ;
Now printf and cout automatically go to that window.
Is it possible in MSVC++ to have more than one console window?
...
I am trying to add ASLR to a project using a vsprops file. I have verified the file is being used by the project as there are other settings in the file that are being applied, and intentionally corrupting the file produces an error when opening the project under MSVC. When I set ASLR to yes I can see RandomizedBaseAddress="2" under <Too...
I need to get this as a result in the preprocessor definitions of the msvc generator:
MYPATH=\"d:\\;.\\Lib\"
But when I use the following escape sequence in set_source_files_properties:
set_source_files_properties(source.c PROPERTIES COMPILE_FLAGS "-DMYPATH=\\\"d:\\\;.\\\\Lib\\\"")
the generated result is: MYPATH=\"d:\";".\Lib\"
...
Hi - In GetPrivateProfileString, lpReturnedString returns the string value present in the key of a particular section of an ini file.
My question is that how will i know exactly, how much memory has to be allocated, rather than just allocation a large chunk prior to calling this function.
DWORD WINAPI GetPrivateProfileString(
__in ...
Hello, everyone.
I'm somewhat new to OpenCV and for some reason, I'm not managing to get CamShift to work in C++. First of all, if anyone has a working CamShift example using the C++ interface I would really appreciate it.
Second, I'm trying to adapt the C example to C++, just to get it to work. Nothing fancy, yet. Basically, what I'm ...
Can any one tell me when OnTimer event will be fired ?
(new to VC++)
(sorry for bad formattibg)
enter code here
// iSCSIDlg.h : header file
define WM_RECVDATA WM_USER+1
class CISCSIDlg : public CDialog
{
public:
bool m_testrand;
bool m_ack;
bool m_testProc;
BOOL m_isConnect;
BOOL InitSocket();
CISCSIDlg(C...
If I understand correctly, SecurityAction.RequestMinimum has been made obsolete for .NET Framework 4.0 here. Now, when I create a C++/CLR project that targets .NET Framework 4.0, this line gets added automatically in the auto-generated AssemblyInfo.cpp:
[assembly:SecurityPermission(SecurityAction::RequestMinimum, UnmanagedCode = true)];...
hey there!
is there a way in visual studio to select some type and display how it gets included into the current file?
for example i'd like to click on some membervariable
SomeType a;
and then get displayed something like "first_include.h"->"second_include.h"->"SomeType.h"
to understand what chain of includes the compiler uses to t...
I have a DLL supplied by a 3rd party along with an accompanying .NET 2.0 assembly that wraps it. If I create a .NET 3.5 project with VS2008 I am able to call into the DLL via the wrapper assembly and it works OK. However, if I create an equivalent .NET 4.0 project with VS2010 then I get a R6030 - CRT not initialized error in a message bo...
My code was working fine until I reloaded the program a few hours later. Now I get these this error:
error C3867: 'player::getxPos': function call missing argument list; use '&player::getxPos' to create a pointer to member
error C3867: 'player::getyPos': function call missing argument list; use '&player::getyPos' to create a poi...
I get a build failure due to a post build event failure when building Notepad++ in VS 2010.
Here's the message from Output window:
PostBuildEvent:
The system cannot find the file specified.
The system cannot find the file specified.
The system cannot find the file specified.
C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Micro...
Hello. I am somewhat of a novice and am seeking some help.
I am working in Visual Studios 2010 and have my solution that has my project that I am currently working on. Specifically I am working on a Win32 Project. I don't know if that is important to know or not.
I have made a file/folder structure in the directory I am working on to h...
I used to work with math.h without any problem. Now, I use an external library which itself has a file called math.h, but which includes < cmath>.
Adding this library to my project (or even just adding the include directory, without touching the code) now generates tons of errors from < cmath> :
C:\Program Files\Microsoft Visual Stu...
The following code compiles on VS Express Edition 2008, yet I get the following errors when trying to debug/release:
1>Linking...
1>MSVCRT.lib(crtexew.obj) : error LNK2001: unresolved external symbol _WinMain@16
1>E:\Documents and Settings\Administrator\Desktop\Proyecto 2 gràficas\testing\Release\testing.exe : fatal error LNK1120: 1 unr...