OBJ conversion?
I'm trying to make OBJ converter. The file structure of which I am trying to convert is an XML structure. Here's an example. I currently have a lua script that does this for me. But it always crashes...
View ArticleDetect what sent WM_QUERYENDSESSION?
I know after reading about WM_QUERYENDSESSION that windows typically sends this message to all running applications when a user is either logging off, restarting, or shutting a PC down. I have an...
View ArticleLoading a file and indexing line starts
Hi All, I've spent some time trying to performance test various methods of loading / accessing a file, either into memory or through a memory mapped file, but I am having some trouble. FILE * pFile;...
View ArticleI need to stop executing constructor
PHP Code: using namespace System; ref class A { public: A(){Console::WriteLine(L"A constructor");} virtual void func(){foo();} void foo() { Console::WriteLine(L"A from foo");...
View ArticleSlider not incrementing with the video.?
Hi, I am using DirectShow to play/pause/stop a video file. I am having a slider control which increments with the playing video. I have done some calculation to find the exact step to forward or...
View ArticleCircular references suspected. Any help please.
Objects.h Code: #pragma once #include "..\SkinnedMesh\skinnedMesh.h" #include "..\Activities\RunToObject.h" #include "..\Activities\Idle.h" #include "..\Activities\TruckArrive.h" #include...
View ArticleHow to convert UTF-8 string to Unicode string
I am using Visual Studio 2008. I just wonder if there are any library function in Windows SDK or MFC, or from third-parties, that can convert a UTF-8 string into Windows Unicode string(used in CString...
View Articlebank project c++
I am making this bank project in c++ and i am using classes.My problem is i cant understand to make relation of classes.i am making inheritance of account classs with current account class and saving...
View ArticlePointer to incomplete class is not allowed
Hello Here is the pseudocode, Code: class myDX9Widget { std::vector<Object*> m_vRenderObjects; }; class Object { }; class Lorry : public Object { Activity *activity; myDX9Widget* owner;...
View ArticleCreating a variable using a variable?
Hi guys. Okay, so I am quite new to programming, and i was wondering if there is any way to create a variable using a variable in the name? So f.x. if you wanted to create an int named nr(x), and x was...
View ArticleExiting application during while loop operation
Hi guys, I have a VC++ 6 dialog-based application. This application is intended for reading data from a USB device (this is a FTDI FT245R chip). I have a start button on the dialog. On clicking it,...
View ArticleWinsock - Accepting multiple clients on a server?
Hi! I've been having this problem for a VERY VERY VERY long time! And I can't seem to figure it out=( Which is why I'm here to ask for help! =D So, Hello CG viewers! My problem is that I've created a...
View Articlehelp with c++ code if else statement
I made a code to put in the user name id and password then create a new password; if the user name&password are wrong it should come up with a loop saying "invalid user id you can try ___ number of...
View ArticleCWnd issues with mouse events
Hello, I have a main CWnd class called CMainWnd which is created like this: Code: DWORD dwStyle = WS_VISIBLE | WS_BORDER | WS_CLIPCHILDREN ; ... CWnd::Create(AfxRegisterWndClass(CS_DBLCLKS), L"",...
View ArticleProblem using wstring converted from char * in dll class
I have attached a demo app. A lengthy post was lost by the server. :mad: Edit: I figured it out when I built a simple demo project. Problem arose because of trying to access a c-wrapper dll from the...
View Article[HELP] Beginner c++ programmer, what's next?
Hello, I have been studying c++ for approximately 1 month now. I have read 2 books, and have created numerous custom console applications that basically just run in the console. I have also written my...
View Articlememcpy error in MFC
Hi, I load an image(768*256) using a file path(OpenImageFilePath). After load an image, I start to read the loaded Image data using GetBits method and plot the same image data(768*256). I'm using the...
View ArticleError D8022
I've moved the project from drive d to drive c, then I replaced the hard drive with a new one. I am getting this now, how do I resolve it? Error 1 error D8022: cannot open 'D:\Program Files...
View ArticleHow to Implement HD video recording using DirectShow.?
Hi, I am using DirectShow to Play / Pause / Stop and Capture Video files. But Capturing and playing of video files is simple. I want to Implement HD Video recording in my project. Anybody have any idea...
View ArticleHas anybody figured out how to run 2012 apps on XP
Installed 2012 last week and apps won't run on XP or 2003. They give a message "Not a valid Win32 application", or something to that effect. So if I set the platform toolset to Visual Studio 2012...
View Article