158 byte By
ngjackie at 2007-11-20 11:44:01
Is it possible to send variables between Marcomedia Flash 8 and Visual C++ 2005 Express Edition? If yes, can someone show me code examples? Thanks in advance.
Hi to All,<br/>I want to read a xml file in my program and make tree based on these value. Please tell me how to read xml files <br/>Thanks.
1393 byte By
vippavlo at 2007-11-20 11:44:17
How i can get ProgID or CLSID if i have only pointer to some IDispatch interface. For example:CComPtr< ISome > spSome;I was trying to do the next:CComPtr spTypeInfo;hr = m_spSome->GetTypeInfo( 100, LOCALE_SYSTEM_DEFAULT, &spTypeInfo );if( FAILED( hr = PrepareFuncInfo() ) ){return hr;}TYPEAT...
223 byte By
ishay44 at 2007-11-20 11:44:18
use Winsock2 (WS2_32.DLL) and i want to canceling the 'select()' blocking, in Windows Sockets 1.1 it was possible using the WSACancelBlockingCall(), but it removed for Winsock2 so how can cancel this blocking now?
159 byte By
zarraza at 2007-11-20 11:44:20
Hi, i have SDI app which view i based on CFormView and some controls inside. On button click i want to open another CFormView based window. How to do that??.
dear friends, i created a MDI application and name it as ABC.When i execute and open many New window through Window->New Window then the window is automatically named as ABC1:1, ABC1:2 like this.How can i set the customized name to the window with out ant default extension.than...
hi guys,im starting to learn C++ and i am developing some simple programs, the problem is i don't get any code hints, which i find really helpful.when i say code hints i mean if i type the name of an object and press . i get a list of all the available methods.can anyone suggest how i can activ...
2332 byte By
flynny1st at 2007-11-20 11:44:26
hi everyone i wrote a method to read in a file and when i detect a black pixel i want to do some processing. This was working when when my test data was 24bit however now i'm trying it with a 32bit image it doesnt seem to be working.If i use this method and print out all the coords then ite see...
788 byte By
zarraza at 2007-11-20 11:44:28
Hi, i have SDI app and CDialog based dialog. I need to set srollsize/range every time someone change something in that dialog (add more buttons change window size). In CFormView based dialog i overwrite OnUpdate function : void CResize1View::OnUpdate(CView* pSender, LPARAM lHint, CObject* pHint) {...
Hi, i am relitely new to C++ using visual studio and am studying it as part of a course in University.I am also learning C# which i have managed to pick up quite quickly but when it comes to C++ i seem to be totally stumped. not sure if its the way i'm taught or what but anyways to my problem:...
I am using Visual Studio 2005 to program an application in Visual C++the appliaction needs to get a date and time in past from the user. so i am trying to use date time picker control, which allows only date or time to be picked from the controlIs there any way i can get both date and time from the...
797 byte By
Buzzyous at 2007-11-20 11:44:34
Hello to all.I need in my MFC Wizard created app with database support to access a database created with "SQL server 2005 express". The database has only a table, with only two columns; when I specify all information for accessing the db in the dialog window, when I launch the newly created db suppo...
I have a MFC ActiveX control which displays data from a COM object (which is in a separate DLL). I want to be able to catch events fired from this object. I tried to derive the ActiveX implementation class from the IDispEventImpl class and add an event sink map, but when the event is fired I get a c...
620 byte By
lontana at 2007-11-20 11:44:37
clas A { struct st { int a,b; } protected: vector<st> f(int d, intc, int g);}vector<st> A:: f(int d, intc, int g){ st s; for(int i=0;i<d;i++) { s.a=c+i; s.b=g-i; } return s;}Dear All,First I declare my function within the class...
465 byte By
Darren.T at 2007-11-20 11:44:38
My unit develops using C (probably considered archaic now-a-days). The only encryption libraries available to us are the built in "crypt" which is a joke, and MD5, which isn't an encryption... more just a one way hash generator.Are there any free source (must be source code) modules available...
Hi All,Is it possible to use a window object (like calling it's API) through it's Handle in a process other than the process which has created the window ?I am using a third party grid in my application. I need to capture the position of a cell when that cell is activated through mouse or...
122 byte By
rony123 at 2007-11-20 11:44:42
Hi guys!<br/>Is there any method in vc to retrive system LAN card's number...<br/>please help me...<br/>bye
1010 byte By
lnknprkn at 2007-11-20 11:44:43
here's my code. it keeps on getting an error and freezes up the computer. theres no compiler error or anything, the .exe just crasheswhat the function does it gets the first word of a string. thats all it needs to do.#include <iostream>using std::cout; using std::cin;using std::endl;...
#include <iostream>#include <cstdlib>#include <ctime>using namespace std;int DonnerVecteur(double *vecteur, int 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);}void main(...
304 byte By
DeepT at 2007-11-20 11:45:11
I have a dialog with some fields in it, several edit boxes. If you press enter on any of the fields (or just press enter with anything in the dialog selected), it exits.Id like to be able to have the user press enter and the next edit field is selected. Can someone tell me what is going on?...
Hi, I have a multiline text box that the user will need to press enter in to go to the next line; however, everytime I press enter in the text box it clicks the ok button instead of going to the next line. I purposely left no default button so this wouldn't happen, but for some reason, the mom...
2081 byte By
siteon at 2007-11-20 11:45:18
Im trying to write some kind of thread embeding class, like there is sure many easy to get :PI thought it wouldnt be much of a problem but then id hited the wall of Unhandled exception 0xC0000096: Privileged instruction.Here is my code:Thread.h#ifndef THREAD_H#define THREAD_H#include <windows.h&...
Hi all. I have an issue with Resource.h file of my application. I am getting an exception due to it. I have a multi-view SDI application and I am using collections in doc class to handle data. I am getting an exception that says m_hWnd unused. Previously it was giving the address of the handle as 0x...
Hi All,,I am getting problem while getting bitmap bits from bitmap in Win32 app.And I got my bitmap data using the same thing in MFC in another app.I used below code in Win32.....int iWidth = rect.right - rect.left; int iHeight = rect.bottom - rect.top; HBITMAP new_Bitmap = CreateCompatibleBitmap(m...
75 byte By
kranti at 2007-11-20 11:45:30
Hi,<br/> Can anybody tell me how can i make a colum invisible in listctrl
358 byte By
Saeed at 2007-11-20 11:45:33
There must be a way to associate an int member var with a radio button and have that value updated automatically by mfc when other radio buttons are clickedI cant remember how to do this without having to check each individual button to see if ts checked or not. :wave: Got it UpdateData(); was miss...
613 byte By
imazing at 2007-11-20 11:45:34
Hi,I've written a simple ISAPI filter which would require the user to authenticate before accessing a particular resource. The user will be sent a 401 Unauthorized error and will have to authenticate himself. The username and password have been hardcoded and will be checked against what the use...
I want to make a Application in VC++ with two Logins, one for Administrator and the other for user. After start up of the PC directly my application should run. In Administrator login, i want to provide a control for system shut down option and desktop access should be denied.Can anyone give a sol...
662 byte By
lnknprkn at 2007-11-20 11:45:40
string getLastWord (string& inspectThis){ int i = 0; string finalLastWord; string reverseLastWord; i = inspectThis.length() - 1; while (i != inspectThis.length()) { reverseLastWord += inspectThis[i]; i--; if (inspectThis[i] == ' ') { i = reverseLastWord.length(); int i2 = 0; w...
490 byte By
c.chen at 2007-11-20 11:45:47
hi,I used "static BOOL PASCAL GetStatus( LPCTSTR lpszFileName, CFileStatus& rStatus );" to get file status information in my code, but if the lpszFileName was a network file path(such as "\\192.168.0.125\test\test.txt"), and the "test.txt" file did not exist, it would take a lot of time to wait CFi...
398 byte By
rony123 at 2007-11-20 11:45:48
Hi guys!Network interface cards have a unique internal number, sometimes called the Physical Node Address. I have been able to retrieve this value from a local machine's hardware in the past with Novell's API function GetStationAddress().Is there any VC++ function equivalent to that? Note,...
519 byte By
lnknprkn at 2007-11-20 11:45:52
user input: **HELLO**!!what's suppose to happen:firstWord = HELLOinspectThis = **!!string extractWord (string& inspectThis){ string firstWord; int i = 0; while (inspectThis[i] != '\n') { if (isalpha(inspectThis[i])) { firstWord += inspectThis[i]; inspectThis[i] = NULL; } inspe...
766 byte By
tarunk at 2007-11-20 11:45:55
HI All, I have a method in my COM API with a parameter SAFEARRAY.So in my idl mymethod(SAFEARRAY(VARIANT)* mysafearray)in the .h filemymethod(SAFEARRAY** mysafearray).This work fine. But now i am using an attributed ATL project which does not use the idl to declare the method instead in the .h file...
119 byte By
kranti at 2007-11-20 11:45:59
Hi,<br/> I want to customize CFontDialog fontsize combobox with my own font size values.can anybody plz help me out..
4850 byte By
rydzx at 2007-11-20 11:46:00
Hello there...these program will input student information from user...I having problem at searching student information in memory vector...If i search "fname" and "lname" on case 2, program not show our student data...Below is my completed program...=================================================...
280 byte By
mimi17 at 2007-11-20 11:46:06
I tried to fix it for hours. I can't get why it doesn't work. How to fix it?<br/>One more question, is there any way to divide a picture box into multiple part so that it can display multiple image files instead of using multiple picture boxes?<br/>Thank you in advance!
361 byte By
Simon666 at 2007-11-20 11:46:11
hello,I'm trying to run a DOS program from my Visual C++ app. From the command promptdct -t <File1.txt> File2.txtworks fine but ShellExecute(NULL,"open","dct.exe"," -t <File1.txt> File2.txt",NULL,SW_SHOW);only gets stuck showing an empty dos window, doesn't seem to do anything....
262 byte By
misst at 2007-11-20 11:46:15
Hi!<br/>Is there anyone who can help me with cancel printing?<br/>I've tried in many ways but I do not succeed!!!!<br/>Is there any usefull link?<br/>the msdn one http://support.microsoft.com/kb/139652/en-us doesn't help me.<br/>thankyou
Hi all.i have a problem here. I'm kinda new to vc++, and did a non-successfully research before post here. so, i'd like any help.I'm trying to send one file using tcp connection. i'm using c++ sockets.my vc++ app is the server side (client side is VB6).Basically, what i want is a...
288 byte By
mimi17 at 2007-11-20 11:46:19
Here the labels are window forms. Is there a way to simplify the following code by making labels variable? The code is written in MFC. Thank you in advance!<br/>if(a==1)<br/>label1->Text="ok";<br/>if(a==2)<br/>label2->Text="ok";<br/>if(a==3)<br/>label3->Text="ok";
Hi,I am trying to prevent a user resizing the columns of a list control. I have read loads of pages about this, including some known bugs, but cannot receive any HDN messages (especially the HDN_BEGINTRACK message (and I have added HDN_BEGINTRACKA and HDN_BEGINTRACKW)). Using the WM_NOTIFY message,...
172 byte By
lnknprkn at 2007-11-20 11:46:31
is it possible to run a program line by line? i want to see where my program goes as it is being run, like how long it stays in the loop, which functions it goes into, etc.
962 byte By
Anarchi at 2007-11-20 11:46:36
I have a standard MFC Dialog in VC2005. It is a simple file installer that runs, shows a file copy dialog, copies the files, and closes.I have put all the usual Initialization code in OnInitDialog(), resetting variables etc..Now what I want to do is run a function straight after OnInitDialog() has f...
197 byte By
Saeed at 2007-11-20 11:46:40
How do you determine if you are compiling under the debug or release<br/>if there any thing like?<br/>if compiling under debug <br/>#include "a_d.h"<br/>else <br/>#include "a.h"<br/>endif
1231 byte By
thaikick at 2007-11-20 11:46:41
Hello guys...I've added a tab control in a dialog and i named the tabs according to the lines below TCITEM tabItem; tabItem.mask = TCIF_TEXT; tabItem.pszText = _T(" &Main "); //1st title m_cTab.InsertItem(0, &tabItem); tabItem.pszText = _T(" &Secondary ");//2nd title m_cT...
1927 byte By
Yasmin19 at 2007-11-20 11:46:42
Dear Friend!I need some help here,I have create a program for chatting and send file application through modem(i'm using TAPI for this)so far i'm able to establish the connection and send text messages(chatting),but i haven't success for data transfers.For data transfers i have create...
Hi All,I am working on win32 application in that solution I have included new project in which I have one header file and I want to include that header file in my win32 application's file(any .h or .cpp).But when I do this I got the error like .....cannot include file ,no such directory.And als...
Hi,I have a third party application which does not support any copy or paste option (Ctrl+C, Ctrl+V etc). But I desparately wanted to paste data in that application's window. Is there any way to do this?Any application we can write do achieve this ? I am new to MFC/Windows programming. -Piyush...
219 byte By
Saeed at 2007-11-20 11:46:49
I am sure a few of you<br/>have a function that would convert a CString like "FE5A3D..." to a CByteArray or a char[] or whatever in its binary form (half the length).<br/>Woudl you mind sharing it?<br/>Cheers
Possibly you could check it out<br/>www.lost.eu/6ac28