658 byte By
Anarchi at 2007-11-20 11:48:05
I have VS2005 Standard, with SP1 installed running on XP SP2.I have made a simple MFC application, it can compile and run ok, there is nothing unique about it. But when I add a new Function to the Dialog Class (using the Add Member Function Wizard) and click Finish, it give me this error:"Failed to...
Hello,<br/>I have a requirement to exit the meaasge box if there is no response from the user.<br/>I want to continue the execution of application after a particular time indicating the "seconds left" in the message box.<br/>Can any one please help me?<br/>Thanks<br/>Mahendra
921 byte By
mokeefe at 2007-11-20 11:48:09
Hope this is the right forum. If not, sorry.I am trying to create a multipart html document that I can transmit as an attachment. I have all the attachment part working, but I can get an image embedded into the attachment document. I am trying to set up a multipart doc, but the MIME info keeps print...
1075 byte By
prads at 2007-11-20 11:48:11
Hello,the following code doesnot return the corect values to the main function. However it prints the correct values within the function. Also the same when written in C works absolutely fine. Pls tell me where im going wrong and correct me. U can run it and check!ThanksPrads<code>#include <...
Hi All, I am using VC++ win32 application in VS 2005.I have created one project as win32 and now I want to add one another project which is omnithread into same solution.I want to make it as static library. How can I use omnithread.h,nt.h and nt.cpp files in this project.And what my project settings...
253 byte By
john_avi at 2007-11-20 11:48:13
does anyone know how to retrieve domain name from an IP address? I know it is possible since I have seen it happening in an application? I want to know the windows API or any other method which can return me domain name of which this IP address is part?
580 byte By
thomus07 at 2007-11-20 11:48:14
Dear brothers,I am new to win32 programming.I have used NetQuerydisplayInformation to retreive infomation about users and groups. I could retreive all details of users of my local system or server using NET_DISPLAY_USER . But the NET_DISPLAY_GROUP structure could not give the full group details of...
hello,I want to capture Video(a clip of video) into a file using DirectShow,plz tell me how can i acchive it, I know how to capture a bitmap from a video ,but not getting how to capture a clip from a video and write it into a file...if you have any example of it pl z share with me......Thanks...
153 byte By
Saeed at 2007-11-20 11:48:17
I have a function with prototype<br/> Op(char const *);<br/>Arg 1 is of CString type.<br/>What is the proper conversion method?<br/>Cheers
Heya,Im using Winsock to recieve a string.. eg "Hello, World". As usual with winsock, i recieve it in a character array. What I wanna do, im making some kinda, something, which stores each word in a sperate thing. So, I guess this is string seperation..? Anyone shed some light?Sorry if this should b...
Hi all,I am facing strange problem. I am executing A.exe and i wrote code in that binary to update the resource of itself ( that is A.exe itself).. But i am not able to update the resource..Is it permitted ?? I think its not ...even its not giving ny error... whats the problem with it ?? ThnxLiveShe...
hi,<br/>I want to capture the desktop events and want to save it as video file ,plz tell me how to do this ......I have code to capture the the video from device...if u have any example to capture Desktop pl z share with me..<br/>Thanks in Advance
732 byte By
sadek_84 at 2007-11-20 11:48:26
Hi,I have developed an xml web service using ATL. It worked locally fine, i.e. on the machine where service was built.When i tried to deploy that service on other machine; either manually or through setup project; i failed to discoverthat service. Although i have changed the name of the machine in t...
481 byte By
Ajami at 2007-11-20 11:48:28
Hello,In my code :OnLButtonDown(){ Draw_Object_One(); Invalidate(False); Sleep(2000); Draw_Object_Two(); Invalidate(False);}This code should first draw object one and then wait for two seconds and then draw object two.What is happening is that it does not draw object one but draws object twoand the...
459 byte By
tomcio at 2007-11-20 11:48:31
Hello!I want to use SCTP protocol on Windows, but it's much harder, that I was thinking. Under Linux I haven't got any problems, because it have native implementation and simple API.I found SCTP implementation (sctpplib from www.sctp.de). I'm trying to understand it's API, but wi...
Friends,I am new to windows programming and have made a program for windows mobile 6 that writes the current date and time in hello.txt when it is launched manually.I want to start this hello.exe every time when the device boot. I have read about the services in this forum. I have few questions:1. D...
1392 byte By
kRogue at 2007-11-20 11:48:34
I am trying to use some COM and ATL magic from a console application in VS2005, the following code crashes as it tries to dereference a NULL pointer:CMyDeviceFinderCallBack *CMyDeviceFinderCallBack::Create(void){ CComObject<CMyDeviceFinderCallBack> * pCallback = NULL; pCallback->Creat...
780 byte By
Lazze at 2007-11-20 11:48:37
HelloI've recently moved a large project written in mainly C using Borland C++ 5.0 to another server, but when I try to compile I'm getting a lot of errors when tlink32 is running.The errors looks like:Error: Unresolved external '__ErrorMessage' referenced from module c0ntd.ASMEr...
Hello ppl!I have a huge problem with my programing class at school.The task is to create a program that asks the user for his/her first and surname. The entire name shall be stored in only one char variable. When this is done the program writes the surname and then the first name. Besides the variab...
1573 byte By
ze1 at 2007-11-20 11:48:43
Hi, I'm making a C program (not C++) and I have a problem.I've created this data type:typedef struct { char ArrayChar[9] ; int Probability[9] ;} tpBoard ;and I need to store a variable of the type tpBoard inside a list but the value of is of the void type:This is the node:typedef struct tg...
112 byte By
quorsum at 2007-11-20 11:48:46
hello<br/>I just cannot find how to concert ascii code to character.<br/>any help is much appreciated.
1657 byte By
Printisor at 2007-11-20 11:48:47
Hi all,I am trying to create an application that uses TCP sockets under Unix, where multiple clients connect to one server. Each message sent by one client is forwarded to all other clients. I am using on the server side an array of int's declared at the beginning of the application, that will...
2538 byte By
forester at 2007-11-20 11:48:48
I have a dialog based project which encodes file from type A to type B. The functions related to the encoding are export from a third party DLL. When the user clicks the button of "Encode file", a thread named EncodeThread will be created, and all the encoding works are done in the EncodeThread. No...
317 byte By
genossa at 2007-11-20 11:48:52
Hello everyone!Have a couple of tricky questions here1. Is there a way to get the vendor name of the installed PnP monitor?2. Is there a way to get the vendor name of the installed PnP monitor having its Vendor ID and Product Identifier from the EDID data block?Thanks,Gennadii...
1197 byte By
Zenlakin at 2007-11-20 11:48:53
Hello all. I am not in a programming class per say. It is actually a modern operating systems class and our teacher asked us to work out this little lab. It is not for any points but just to help us understand the concept of when deadlocks occur and such. Here is the lab:Code the Bankers' algor...
1109 byte By
Dave089 at 2007-11-20 11:48:55
Hi all,I have a problem connection to a remote Windows Media Services 2003 server by C# code.I need to create a distributed COM server object in order to program against the server.These are the code lines *Type tServerType;WMSServer RemoteServer;*// Retrieve the type information from the Windows//...
317 byte By
genossa at 2007-11-20 11:48:57
Hello everyone!Have a couple of tricky questions here1. Is there a way to get the vendor name of the installed PnP monitor?2. Is there a way to get the vendor name of the installed PnP monitor having its Vendor ID and Product Identifier from the EDID data block?Thanks,Gennadii...
168 byte By
progeja at 2007-11-20 11:48:58
How to get first N digits programmaticaly ?<br/>UINT64 id = 198103134185665;<br/>UINT res = 0;<br/>// I need res to be first 8 digits: <br/>// res = 19810313;
305 byte By
zarraza at 2007-11-20 11:48:59
Hi i have a dialog and i wan't to create few group boxes dynamically (by new operator). But i don't know how to set text align to center. It is in control editor in properties->styles->horisontal align. But how to set center align of group box text in code when i create dynamic group...
First I should state this program has been running for 3 years just fine and I am not sure what the reason is for it suddenly not working. I just got the new version of MSVC and installed the new BOOST so maybe that's the issue.Any how, I have 2 vector stucts of mostly strings that I am trying...
1118 byte By
Fazer1000 at 2007-11-20 11:49:01
Hi,I'm trying to upgrade a project from my old favourite VC6 to Visual Studio 2005 but I'm getting errors with some template classes.The most trivial example of the problem:template <class theCollection>class McbTemplateBaseT : public theCollection{};template <class theItem>cla...
ok this is a simulator incorporating the rules of movement for the game of monopoly.#include <string>#include <iostream>#include <fstream>#include <cstdlib>using namespace std;#include "dice.h"const unsigned int MAXSQUARES = 40;const unsigned int MAXPLAYERS = 4;const unsigne...
My question is: I dont know which creational design pattern to solve the problem below:I have a "main" class I call Sentinel which monitors all the threads that are created. If any of the threads dont finish on time or died, the Sentinel will be able to detect this and report to user.Let's take...
Does anyone know where I can find the syntax of using Regular Expressions in C++ ? There is plenty of tutorials and examples on using RegEx in Perl but not so much for C++.I'm using the Borland Compiler Command Line which is apparently from the Borland Builder C++ 5.x compiler. Thanks...
Hi guys,I read everywhere that RTTI can only work if you have at least 1 virtual function.I use this code:#include <iostream.h>#include <typeinfo.h>class X{ int i;public: void f() {i++;}};void main(){ X x1,x2; if(typeid(x1)==typeid(x2)) cout<<"same!"<<endl;}As you can s...
I have to make a sub-program like this:int DonnerVecteur(double *vecteur, int nbValeurs){ vecteur = new double* [nbValeurs]; int i = 0; srand((unsigned)time(NULL)); for (i=0; i<nbValeurs; i++) { vecteur[i] = (1 + rand()%50) + 5; cout << vecteur[i]; } return(0);}And then I need to call it...
Waz up guys,<br/>How would go round making things like circles(Ellipse()) and rectangles(Rectangle()) transparent so that only their borders are visible?<br/>Thanks.
Is there any program that could convert a .exe program into a .cpp or make it editable in a compiler?<br/>Thank you
1368 byte By
sargexp at 2007-11-20 11:49:15
Hi,I am quite new to c++ and am stuck with the following, i have created some pseudo code,Event Libclass cEvent{ public: void Join(void (*Function)()); cEvent(); ~cEvent();};void (*SignalReached)();void (*SignalLost)();cEvent::cEvent(){}cEvent::~cEvent(){}void cEvent::Join(int Type, void (*Functi...
Ok I had a program that asked the user for a number. Then displayed the multiplication table for that number 0-10. It used the function prototype and code the function definitionsint getNumber( );void displayTable(int);and it used a loop to calculate and display the table. I have the .exe file but...
I need to write a program that asks a user for a file name. assume the file contains a series of #'s each on a separate line. The program should read the contents of the file into an array, and then display the following data: 1-lowest # 2-highest # 3-total of the #'s 4-average of the #...
222 byte By
majoob at 2007-11-20 11:49:21
C++ console application in Visual Studio 2005.<br/>Debug build runs fine from inside the IDE. When debug build is run outside the IDE it returns error codes and terminates.<br/>Same exe, right? Why would this be?
Hi, basically i would like my program to allow my user to be able specify a folder in which to save things in. My program gives an output of a bunch of files and i would like to be able to give the user the ability to choose the folder inwhich to save these inany ideas? of places i can go away and r...
80 byte By
Saeed at 2007-11-20 11:49:24
I dont seem to be able to find where i can set my project to be of UNICODE type.
509 byte By
Saeed at 2007-11-20 11:49:30
error LNK1104: cannot open file 'mfc42ud.lib' I am running Microsoft Visual Studio 2005Version 8.0.Microsoft .NET Framework Ver 2.0Installed Edition: Standard Microsoft Visual C++ 2005 Where is this UNICODE Support that I need to install on teh disks?I dont seem to be able to find it as...
I want personal opinions on this. Which one is better for making games?
721 byte By
Saeed at 2007-11-20 11:49:36
Once a project has been changed to the Unicode instead of multi Byte char set , teh content of the log file produced looks weird.How do you accomodate for this ? FILE *f; f=fopen("UT_HSM_ALI.log","a+t"); fprintf(f,"%s %s\n",szDateTime,x); fclose(f);// in unicode looks spooky1 1 / 0 2 / 2 0 0 7 1...
hello everyone,i am working on kruskal algorithm using disjoint sets.here's what i have for now:#include <iostream>#include <fstream>#include <stdio.h>using namespace std;void makeset(int);int findset(int);void unionset(int, int);void linkset(int, int);const int nmax = 1000001...
Hello, <br/>Does anyone know of any decent tutorials on the subject of using interrupts in windows XP?<br/>Is there a particular reason why none of the API programming tutorials I read, mention the use of interrups?<br/>Thankyou<br/>Regards Newbie
2006 byte By
rimmer at 2007-11-20 11:49:39
hey all..ide: visual studio 2005language: c++i'm having some trouble with the concept of #include files and how they are linked to a solution at compile/build time.constantly receiving (error LNK2001: unresolved external symbol) error at build time when calling functions from external source co...