How can i call my func?
This is my codes:[code] #include "stdafx.h" #include <stdio.h> int add(int a,int b){__asm{mov eax,amov ebx,badd eax,ebx} } int x86asm_add_call_func(int c,int d){__asm{push cpush dcall add} } int...
View ArticleVisual Styles
To enable visual styles in your app, you should link to the common control library, however, in Windows 8, MSDN said that Visual styles are ON by default, so your app gets visual styles for free. I...
View ArticleHow to get rid of warning LNK4075: ignoring '/EDITANDCONTINUE' due to...
Hello,I would like to get rid of the linker warning LNK4075: ignoring '/EDITANDCONTINUE' due to '/OPT:LBR' specification.My VS solution has two projects, a C++/CLI executable and a static C++...
View Articleusing pair
Hi, Part of my code uses the function 'pair' I was trying to understand what it is doing. int row = 0; int counter = 0; xstring row_name; pair <StrEnum::EnumValue, int> comp_rate_key; for (row =...
View ArticleMemory mapping of empty files.
I want to map a empty file onto virtual memory and write data into it at the run time is it possible for me to do so.Anyone please help me out.I have tried doing by creating a file using createfile...
View ArticleDirecting compiler generated files
Hi,Is there a way to direct the compiler (cl.exe) generated files (.obj, .exp, .lib, etc) to a temp directory so that I can delete them after compilation?Thank you
View ArticleRun out of memory in OpenGL
Hi,I am using windows 8.1 and I have run out of memory using OpenGL. There are about a million 3d vertices. Anyone any ideas?Any help gratefully appreciated.Thanks
View ArticleHow to convert the libx264.a to libx264.lib
I compile the x264 using the MinGW and get the libx264.a, but I will use it in visual c++ 2012, how can I convert it to libx264.lib?
View ArticleNot able to generate call stack using StackWalk64 API on 64 bit OS
Hi All,I am trying to generate call stack using StackWalk64 API on 32-bit and 64-bit machine.StackWalk64 API works fine for 32-bit machine but on the 64-bit machine after reading the first line of the...
View Articlevc++ get program files (86) directory as string or char array
Hello, Im new to vc++ How can i get the Program Files (86) directory in VC++ ? Please indicate headers or imports i need to use, cause im new and using some code i see somewhere i receive a lot of...
View ArticleUsing createprocess() to have console based application run after GUI...
I have an mfc application and it is a simpledialog box that takes in user input and stores that information as separate variables. I also have a separate console based application, and once the user...
View ArticleHow to create custom message queue for a background thread
Hi, My requirement is to create a custom message queue for a background thread. Here is some brief history on why I need this. Class A creates back ground thread and post a one specific message to...
View ArticleTab,delete,Ctrl-C,Ctrl-V keys do nothing in embedded WebBrowser Control
Arraw keys and Enter key work.I searched the internet and added some code into my webbrowser control, but no luck:bool CWebBrowserCore::New_message(MSG& msg) { if (msg.message >= WM_KEYFIRST...
View ArticleWinsock message mixes after it received
I have a code which login ftp serverchar servermessage[1000]; char username[] = "USER xxx\r\n"; char password[] = "PASS xxx\r\n"; recv(socket, servermessage, sizeof(servermessage),0);...
View ArticleRunning a program for a coding beginner
HiI am fairly new to programming and am used to the Geany way of running programs (using cout and having a window show the program that is executing). How do I get Visual Studio to run a program so...
View ArticleVisual studio c++ windows form application count text entered into a textbox
hi all...im new to visual studio c++ wind0ws form applicationpls send code to count the number of text entered into a text box on a button click.....im using visual studio c++ 2010
View ArticleVS 2012 errors compiling .dll containing files with the same name. fatal...
Hi,I have ported a huge solution (26 projects) developed in VS2003 (WIN32) to VS 2012 and x64 platform. After much work I am now stuck with the following error while compiling a /clr mixed mode...
View ArticleVisual Studio 2013 Express not executing code
I get this error after building and trying to execute "c:\users\myname\documents\visual studio 2013\projects\projectname\debug\ projectname.exe is not recognized as an internal or external command,...
View Articlehow to give if condition for date and time
hi guys i want to give if condition from start time to end time...like 1PM to 2PM or every time between 1PM to 2PM how should i do that?
View Article