Screen live streaming

467 byte By ashishbhatt12 at 2007-11-20 11:32:58
Hi All,I want little much information about the screen streaming.Let me explain that what I want. I want to create frames from the screen in which my screen data screen pixel format,colors)are stored.So, How can I do that VC++ MFC.I want to make frames continuesly as my screen (desktop) is changed.A...

I Need a Close Dialog

661 byte By james245 at 2007-11-20 11:33:04
I'm having trouble with visual studio C++ (orcus)I'm trying to make my program prompt to Close whenan event is fired.currently I just have: Close();Which works perfectly fine except It does not prompt the user if they really want to close the application or notI have triedresult= MessageBo...

BHO add script tag

279 byte By conman110 at 2007-11-20 11:33:06
Hello,<br/>I am working on a BHO for the Internet Explorer and I am trying to add a new script tag to the browser HTML document.<br/>I have a valid IHTMLDocument2 of the browser window, but I don't know how to add the script tag...?<br/>Thanks,<br/>Constantin

Timer start Problem

378 byte By pri_skit at 2007-11-20 11:33:13
I am drawing a screen which requires refrehing,so Invalidate() function is called continously.Now I want to start a timer when screen is drawn first time.In the timer i want to call another function which draws another screen after some time.How this could be done?I have tried to start timer but it...

Question about using interfaces and inheritance from CObject.

1783 byte By DaMagic at 2007-11-20 11:33:15
Hello,I have a question about how to use interfaces for a class which in addition is also derived from CObject. My english is not very well but I try to explain in detail.I have a class termed CMyClass which should be derived from CObject in order to use run-time information and dynamic creation sup...

xml parser?

130 byte By inbugable at 2007-11-20 11:33:22
What is the best way to create a fast, preferably non recursive xml parser that parses XML into a DOM-type object?<br/>Thanks

SetScrollSizes

424 byte By volkancin at 2007-11-20 11:33:26
I tried this:void CMyLottoView::OnInitialUpdate(){CHtmlView::OnInitialUpdate();// TODO: This code navigates to a popular spot on the web.// change the code to go where you'd like.LoadFromResource(IDR_HTML_INDEX);CSize sz(600, 600);SetScrollSizes(MM_TEXT, 1000, &sz);}I want to be scroll size to...

Data Table

1586 byte By Max_Payne at 2007-11-20 11:33:31
I made this Data Table.The problem is when the outputs are different it will change the shape of the Table.I need some tips on how can i fix this problem.Thanks in Advance.double sum = 0; for ( int j = 0 ; j < 5 ; j++ ) sum += myClass[j].getTotalToPay(); cout << " xxxxxxxxxxxxxxxxxxxxxxxxx...

Input and Output to file - help please

3514 byte By ArcaneDreams at 2007-11-20 11:33:45
Ok, I need to read from a file, use its contents to preform calculations, then output to a different file.The input file contains whole number values arranged like this:500001025015250ect...Now, I need to read this file, then use each number as an INT type to preform calculations on.I then need to o...

File read problem

436 byte By pri_skit at 2007-11-20 11:33:47
I have written a CString Object into Text file by using :f.Write (&FileName,FileName.GetLength());//FileName is CString ObjectNow I want to Read CString object back How this could be done?I am using code :LPTSTR p = CurrentLanguageName.GetBuffer(11);void *g=(void *)p;f.Read (g,CurrentLanguageFileLen...

VS 2005 : Build with dependency changed from Static Lib to DLL

771 byte By exterminator at 2007-11-20 11:33:51
I have a project (lib) which has dependency on few other projects (libs). The project was built to link with those dependencies (part of the solution) as static libs. I wanted to have a dll build for all of them. For each project, I changed the (Configuration Properties->General) -> Project de...

Getting html control at a given point

358 byte By visharad at 2007-11-20 11:33:56
Suppose an HTML page is displayed. I want to get the details of a control at a given point. For example, if there is an anchor at that point, then I should know that it is an anchor, the URL the anchor refers to. I also want to find out the location of that control.Let me know how to do this i.e. wh...

mfc document, view

226 byte By xnio at 2007-11-20 11:34:05
hi,<br/>assume that you read in data in an mfc document-<br/>how is it possible to modify the documnet's properties<br/>in order to rearrange its size for example when you<br/>actually run your code?<br/>regards

Strings ( Spaces between words )

302 byte By Max_Payne at 2007-11-20 11:34:12
How can i make a string that will allow me to Use Spaces between the words ?This code only allows me to post words without spaces. cout << " Enter the Name of Employee # " << i+1 << ": "; cin >> N; myClass[i].setName( N );...

windows shutdown

366 byte By tanatos at 2007-11-20 11:34:20
hi every one,I have What I guess is a simple question.I need to know how windows xp shutdown dialog worksin specific, how to do a window that does not let you doanything else like shutdown dialog? thanks every one...

Taking user input and passing to Enum??

1412 byte By kahad at 2007-11-20 11:34:23
Hello, all. I'm trying to typing up a Movie Database program. It has an emunarated type to define the possible movie genres:enum MovieGenre {action, comedy, drama, horror, science_fiction, ANY}; //Declares an enum with the possible movie genres.Howver, I'm having trouble finding out how...

STL making problem in Static LIB project

1639 byte By Wolvorine at 2007-11-20 11:34:28
Hi,I have created a Static Linking LIB project , which has few classes and they are using STL alot. When i tried to use some statements liketypedef vector<MyClassXYZ> VMYCLASS;etc etcthen i got many linkage error which i have solved by defining CLASSINDLL_CLASS_DECL macro after every class nam...

Read input from a file and loop it

19 byte By lifeis2evil at 2007-11-20 11:34:32
-- :)<br/>Thank you

win32: how do I handle ctrl+shift+f

563 byte By mgore at 2007-11-20 11:34:37
hi,I want to handle the following key combination in my code ctrl+shift+fI am trying the following:case WM_CHAR: { if ((GetAsyncKeyState(VK_CONTROL) & 0x8001) && (GetAsyncKeyState(VK_SHIFT) & 0x8001)) { UINT word = LOWORD(wParam); switch (word) { case TEXT('f'): case TEXT(�...

Using AFX_EVENT!

128 byte By lucadoi at 2007-11-20 11:34:40
I am try to use function CCmdTarget::OnEvent(UINT idCtrl, AFX_EVENT* Event, AFX_CMDHANDLERINFO* pHandlerInfo ). How to use it?

->text to long

58 byte By solosynergy at 2007-11-20 11:34:42
How do i read a ->text and store it into a long value ?

Avoiding Standby/Hibernation mode

1447 byte By Anarchi at 2007-11-20 11:34:44
Hi,I am trying to stop Windows from entering Standby/Hibernation mode in C++ VS2005.When the laptop's mouse or keyboard is not touched after a set amount of time, it enters Standby mode.The laptops dont use XP's Standby feature, it uses the manufacturers power management utility instead.Ba...

scrolling the client area in PocketPc

709 byte By RaviRanjan1774 at 2007-11-20 11:34:48
Hi All, This is the basic question but still I am not able to implement it. PLease help me I want to scroll the screen with the scrollbar. Basically my need is when user opens the SIP the screen should appear with the scrollbar fit to client area and it should allow the scrolling of screen. IN MFC t...

ODBC CRecordSet::PrepareAndExecute() cannt return

1394 byte By alazer at 2007-11-20 11:34:49
Hi, everyone, i got a so unbelievable trouble, after 1 week, i still can't find why.The problem is :Platform:DataBase Server: windowAdSvr2k, Oracle 8.Client: windowsAdSvr 2k, VC6.0, VC-sp6.0, Oracle9i Clientthe DB contains a lot of data, which is indexed by its ID;My program uses Microsoft ODBC...

help plz find more other way to do

569 byte By daKpRic23 at 2007-11-20 11:34:52
could you guys can help me to find more way to deal with string promptmy friend work with this casevoid Square (void){ int Col, Row, InputSize; InputSize = GetInSize ("Enter an integer size for the shape "); for(Col = 1; Col <= InputSize; Col++) { for(Row = 1; Row <= InputSize; Row++) co...

String sent with sockets

1266 byte By yoni1993 at 2007-11-20 11:34:54
I get this code from another soft built by VC++ 6. So then, ive tried to transate it to VC++8.Server Side:In the Socket.cpp:void Socket::OnReceive(int nErrorCode){ long dataLength; Receive(&dataLength, 4); if (dataLength > 0&& dataLength < 100000) //Just to make sure the client doesn't cr...

Two different GUID same IID

107 byte By reachb4 at 2007-11-20 11:34:56
What will happen if two COM interface with the same name but with different GUID registered in one machine?

error C2440: = : cannot convert from const char to float ??

496 byte By Ares202 at 2007-11-20 11:35:02
Im using C++ express edition 2005, i keep getting this error and cant find a way to fix it "error C2440: '=' : cannot convert from 'const char [2]' to 'float'"this is the code that is causing the problem if (Delivery ="Y")cout << " The Total cost will be " <<...

Help, C++ Newbie

450 byte By RMASON123 at 2007-11-20 11:35:05
Hi I have just started to program in C++ at university, the program that i have written runs but i want to use a while loop at the end to ask the user whether they want to run the program again.If they press 'N' the program shuts down and if they press 'Y' the program does restar...

How to disable a control on a dialogbar

544 byte By rutu at 2007-11-20 11:35:08
hi, I am trying to disable a control on a dialog bar. For that i am using ON_UPDATE_COMMAND_UI(IDC_CREATE_OBJECT,OnUpdateButton)void CEditFrame::OnUpdateButton(CCmdUI *pCmdUI){ pCmdUI->Enable(FALSE);}on th .h file i have written afx_msg void OnUpdateButton(CCmdUI* pCmdUI);but why this code is...

calling a function

98 byte By resumurof at 2007-11-20 11:35:11
HI,<br/> how to call any function in CDocument derived class from a CDialog derived class,

How to move a jpg in GUI?

274 byte By mimi17 at 2007-11-20 11:35:15
I am using visual studio.net for coding a game.I don't have any idea of manipulating image in GUI. <br/>How to make a jpg move down with animation in GUI without the flash thing?<br/>How to make a jpg appear and disappear in GUI?<br/>Please give me the code. Thank you!

saving a subset of an existing image

1231 byte By flynny1st at 2007-11-20 11:35:21
hi basically i want to create a method whereby given an image i save a specified (x,y,width,height) part of the image to another bmp file. i have tried the folowing code but its not working and cant see what i'm doing wrong. can anyone please explain what i'm doing wrong?BOOL CreateBitmap(...

Server-side query with MS Access?

480 byte By zerver at 2007-11-20 11:35:25
Hi!I'm looking for a database engine/service that can use MS Access as a data source.Pretty much like SQL Server that is, but using mdb files instead of mdf.I want the queries to be executed on the server side to reduce network traffic for remote users, but still let local users connect via MS...

use ActiveX executables in Dialog

159 byte By gossip at 2007-11-20 11:35:49
Hi,<br/>I have a ActiveX control which is an executable (not a DLL). Is there a way to put this control on a dialog box? <br/>Thanks,<br/>Gossip

Quick help:)

1094 byte By KingOfSJ1 at 2007-11-20 11:35:58
//************************************************************//Program calculates the interest ona loan.The interest//rate is 7.5% per year and the loan is only for one year.//the output is the amount of the loan, the amoutn of interest,//and the total amount owed.//********************************...

Load strings for menu names from string table

409 byte By forester at 2007-11-20 11:36:05
I have a dialog based application, the main dialog has a menu associated with it, the menu was created with the resource editor, all the names of the menu and menu items have been set. Now I want to change the names of the menu and its menu items, the new names are in the string table. My question i...

MFC missing a WM_ message I need

409 byte By Anarchi at 2007-11-20 11:36:06
I have an MFC Dialog app that needs to handle WM_POWERBROADCAST so I can avoid standby mode.In VS2005, I click my Dialog Class in Class View, then in the Class's Properties on the right, I click the Messages Button to view the available messages. There are many WM_ messages, but nothing to do w...

where are dialog box saved on disk

185 byte By VCProgrammer at 2007-11-20 11:36:12
Hi all,<br/>I just wanted to know that when we a make a dialog based application where are dialogs saved on disk as we have bmps saved in our res folder.<br/>Thanks in advance

[Help] Reading info from game port

387 byte By DarkLotus at 2007-11-20 11:36:14
when a game offers a certain port to attain information from, such as kills/deaths, etc. how would you go about actually reading and logging such information?it's a UDP socket.i've successfully connected to the server ip/port but i just don't know how to read the info it sends through...

Convert to double value

588 byte By ashishbhatt12 at 2007-11-20 11:36:15
Hi all,i have a problem in the value which stored in memory location.i want to convert it into the double value.Suppose, i have the value int k = 2;when I write it on the memory location like, it is like ..40 00 00 00 00 00 00 00 But when i retrieve it from memory location then it gives me reverse l...

Ctrl+Enter to add data in combo box does not work

492 byte By chmanish at 2007-11-20 11:36:26
Hi All, An officemate of mine is trying to add some data to a combo box in a regular VC++ 6 Dialog. When he tries to add the second line in data, by pressing Ctrl+Enter, nothing happens. He tried it in a separate project, but Ctrl+Enter just wont work.It works allright on other machines. What could...

Message handling of CMenu class(MFC)

293 byte By star@1983 at 2007-11-20 11:36:27
Dear All,<br/>Is anyone know where to trap the menu messages in an SDI application(using MFC frame work). <br/>Once the File menu being dropdowned, the message related with menu is not passing through PreTransalteMessage of Application class.<br/>Plz help me :)<br/>By Prasanth Vijay

Lotus Notes & SafeArray

1167 byte By misst at 2007-11-20 11:36:29
Hi!I have a problem... I'm trying to send mail with lotus and I use safearray for multiple To, Cc & Ccn.I have problem with the second send.. something in memory has been made dirty and my application closes.Maybe I wrong the moment I make SafeArrayDestroy because if I don't do it I can se...

error throws while closing the main window

447 byte By sudeephooli at 2007-11-20 11:36:31
Hi All,In my SDI application while closing the main windows it throws error. while debuging control stucks at // detect the case that this is the last frame on the document and// shut down with OnCloseDocument instead. winfrm.cppif (pDocument != NULL && pDocument->m_bAutoDelete)First-chance excep...

Changing the border style of property sheet

609 byte By palz at 2007-11-20 11:36:32
Hi friends, In my application, i have one property sheet which i need to use in two different ways. 1. I need to embed that property sheet within the tab control present in another dialog. 2. The other one is to act as separate dialog box(modal).For the first one, i need to change...

CArray

677 byte By fgutierrez at 2007-11-20 11:36:35
Hi! I,m a begginer in the use of the templated class, ando im trying for use this container. When i declared a CArray in this way:CArray<int,int> branch_container; the compiler launch the next error messagesU:\L_System_v1\LTree_v1\LTree_v1.cpp(69) : error C2143: syntax error : missing ';...

How to detect Floppy Arrival

175 byte By RYK at 2007-11-20 11:36:36
Hi guys<br/>i want to detect Floppy arrival but 'WM_DEVICECHANGE' does not work for floppy so is there anyway to detect Floppy arrival.<br/>with regards<br/>RYK

Re-bar

150 byte By volkancin at 2007-11-20 11:36:38
How can I do that Internet Explorer "dialog re-bar" show left side of the frame window?.. but it must seems to be vertical...<br/>Thanks already.

removing an element from a list

177 byte By aguess at 2007-11-20 11:36:41
hi<br/>i am using a list that i browse it with an iterator,i would like to know if its possible to remove an element from the list ,if this element is in the middle in the list?