Hi to All,I need to insert some button on user demand the no. of button may vary according to number of user and can be go out side the screen of dialog so i need a scroll for these buttons only because my dialog has some other controls rather than these buttons.Please tell me what should i do. Than...
Hi All,I am new Activex project.I want to make MFC Activex Control project in which I want to add DLL project as other project in the same solution.And I want to make this Activex project depends on this DLL project.Is it possible to do like this??Plz give me any suggetion.Thanks in Advance. Ashish...
Hi all,I m trying to implement nsIClassInfo in my VC++ XPCOM component. I reffered to the link http://lxr.mozilla.org/mozilla1.8.0/source/extensions/xmlextras/build/src/nsXMLExtrasModule.cpp#81Now, the macro specified at the line number 81 is defined in nsIDOMClassInfo.h which is not in my gecko sdk...
4568 byte By
CarlH at 2007-11-20 11:53:00
Hi All,I'm new in C++ and I have a problem which I don't seem to be able to solve. The problem seems to be caused by the destructor. When I debug the program I get the message:Debug Assertion Failed!File: dbgdel.cppline: 52Expression: _BLOCK_TYPE_IS_VALID(phead->nBlockUse)I also get an...
184 byte By
lontana at 2007-11-20 11:53:04
Dear All,<br/>I have a for loop in which I use a variable as a counter. Is it good practice to use same variable in other loop therewith not having to use other variable?<br/>thank you
606 byte By
kranti at 2007-11-20 11:53:06
Hi Everyone!How do I get rid of that Annoying Messagebox:---------------------Title has application path and file name |X|---------------------This document has been modified. Do you want to save changes?Yes: Saves your changesNo: Discards your changesCancel: Keeps th...
244 byte By
Shvalb at 2007-11-20 11:53:07
Hi.<br/>I understand that I can pass them and parse them at "ProcessShellCommand", my question is:<br/>Suppose I got the arguement, how can I pass it to Document and store it there so I can access it from every View??<br/>Thanks.
1350 byte By
eero_p at 2007-11-20 11:53:13
Compiler: MSVC 2005Language: C++ (non-MFC)Creating a COM dll -module that fires events is simple enough (ATL -project -> add ATL simple object with Connection point -support -> Add a couple methods etc.), but:1: What flags are needed for multiple instances to catch the same event when it is f...
Hi,I execute the lines of code below#include "ATLComTime.h"COleDateTime tmVal = COleDateTime::GetCurrentTime();CString tmStr = tmVal.Format(LOCALE_NOUSEROVERRIDE, LOCALE_NEUTRAL);On executing tmVal will be say 39391.729583333.tmStr give me the current time in the format tmStr = "11/5/2007 5:30:36 PM...
465 byte By
Padan at 2007-11-20 11:53:16
Hello,my problem is that my dll uses both the Release and Debug version of the MFC when I compile my dll in Release mode. I am quite sure that I only included other libs as a release version. I have searched and tried a lot but I don't know how to solve it.When I create a map file I see which f...
327 byte By
Shvalb at 2007-11-20 11:53:17
Hi.I have an application that from time to time crashes, when it crashes Windows displays a dialog that allows you to send feedback to MS or abort - something like that...my question is, how can I configure my OS or whatever so it won't display any notification/dialog when application crashes ?...
593 byte By
Kushi1 at 2007-11-20 11:53:19
Hi,Im working on WM5.i m trying to port pocketPC2003 project to WindowsMobile 2005.I m getting an error message like:_CE_ACTIVEX was not defined because this Windows CE SDK does not have DCOM. _CE_ACTIVEX could be caused to be defined by defining _CE_ALLOW_MULTI_THREADED_OBJECTS_IN_MTA, but it is r...
356 byte By
Kushi1 at 2007-11-20 11:53:20
Hi,Im trying to port pocketPC2003 project to WindowsMobilw2005.While porting i m getting an error message like: error C2664: 'ATL::CWindowImpl<T,TBase,TWinTraits>::Create' : cannot convert parameter 6 from 'int' to 'ATL::_U_MENUorID'any body please give me an...
885 byte By
tarunk at 2007-11-20 11:53:21
HI All,I have a project win32 dll which i am trying to use in a console applicaiton.This is my code in the console application.#include "stdafx.h"#include "../linktest1/mytest.h"int _tmain(int argc, _TCHAR* argv[]){ cmytest * c = new cmytest(); int b; b = c->mymethod1(); return 0;}and dll goes...
124 byte By
Cyrus_M at 2007-11-20 11:53:22
Hov can I sort double linked list with bubble sort, i have it for may homework but I dont have any idea!!!<br/>Please help!!
444 byte By
shinde at 2007-11-20 11:53:28
Hi All, The bitmap on my application looks proper when the screen resolution is 1024*768 but it disturbed when I change the screen resolution to 800*600. 1)How can I make it look constant on all the resolutions?2)And I'm using 15 inches moniter, but how can I make my bitmap to adjust on...
2693 byte By
flynny1st at 2007-11-20 11:53:31
Hi,all i basically want to do is convert an already existing bitmap to greyscale.to do this i assume i will have to create a new bimapeaderinfo, fill in the needed details and then look at and convert each pixel in the exisiting image.can anyone help me to do this? also am i calculating the width si...
Hello all,<br/>Is there any command available in VC++ to show/hide dialog like SW_SHOW and SW_HIDE available to show/hide window?<br/>Thanks in advance for your reply.<br/>Muthiah.
First question:I am reading a text file letter by letter and trying to eliminate all the punctuation and spaces... is there an easier way to do it than this ? Entree.open("phrases.txt"); if (Entree.fail()) { cout << "Impossible d'ouvrir le fichier" << endl; } else { while (!Entree...
739 byte By
hanks at 2007-11-20 11:53:38
Quesiton: i encounter the trouble when i invoke execmthod.(wmi)the return error is WBEM_E_INVALID_METHOD_PARAMETERS.I have a specail situation than standard one.that is the method's input parameter is also an wmi class.(it is defined by my bios)therefore, when i invoke getmethod() to get input...
102 byte By
thund at 2007-11-20 11:53:40
Hmmm.. Tell me, what is the Gabor Filter??<br/>ANd, explain me the formula Gabor!!!<br/>Please...
521 byte By
zspirit at 2007-11-20 11:53:41
Detected memory leaks!Dumping objects ->{378} normal block at 0x0184D278, 44 bytes long. Data: <, > 2C 00 00 00 02 00 00 00 03 00 00 00 FF FF FF FF I also made sure to #define _CRTDBG_MAP_ALLOC in stdafx.h but I still don't get the file name where memory leak occurs.I get this mem...
395 byte By
zarraza at 2007-11-20 11:53:53
Hi, i use Cwnd::ModifyStyle() function on button in Cdialog. I wanted enable this button which was previously disabled. I do this: m_vDelBut[0]->ModifyStyle(WS_DISABLED, NULL); And when i try to push this enabled button it works but button look like before (text is grey like in disabled button)....
Hi all. Im trying to make a ofstream function that creates a file with a random number behind the fileFirst i tried this:#include <ctime> #include <fstream>using namespace std;int main() { char file[1024]; srand((unsigned)time(0)); int randomnumber; randomnumber=rand(); sprintf(f...
735 byte By
kumar310 at 2007-11-20 11:54:20
Hello everyone,I just recently got a new job for a startup company. For my first project, they want me to design a program that automatically retrieves information from a webpage(for example like taking stock quotes from etrade) and put it into a database. I have no idea how to do that :( I have no...
So, I have two version of a program that is supposed to do the same thing: Take in a dir path as argument, and recursively list all the files in that path. Version 1 works perfectly. Version 2 crashes with STACK OVERFLOW. Version 1: It is designed for MULTIBYTE character set. It makes use of the st...
735 byte By
kumar310 at 2007-11-20 11:54:22
Hello everyone,I just recently got a new job for a startup company. For my first project, they want me to design a program that automatically retrieves information from a webpage(for example like taking stock quotes from etrade) and put it into a database. I have no idea how to do that :( I have no...
Hi,I'm trying to communicate with a USB Mass Storage device using the SCSI command set. I have control over the behavior of the device because I'm able to modify the firmware and hence add vendor specific commands to handle new SCSI commands. I'm trying to send IOCTL_SCSI_PASS_THROUGH...
Hi All,I want to have a menu created inside my formview (it has a tab control inside) on right mouse button cliick. I created the menu in my tab dialog class , here menu gets created but I its not enabled , everything is greyed out . Is it the right place to create a Trackpopupmenu ? please help me...
Hi,, I am using MFC Activex Control Application in VS 20005.I include other DLL in my solution and I have the problem that when I include any function of my DLL then it gives me the error like below.Project : error PRJ0050: Failed to register output. Please ensure you have the appropriate permission...
Hai friends i am developing an MDI application. In that i am having one Listview with list control. In that control when i update the data in every 10 milliseconds then flickering occur continiously. If i overwrite the OnEraseBkGnd function by command the CListView::OnEraseBkGnd(CDC...
Hai friends I am developing one MDI application with list view.In that i want to load 30,000 records in a list control.It takes some seconds to load that on to the control.So i need to display a wait message until finish the loading process.How can i achive that one.regardsbagavathi k...
384 byte By
kranti at 2007-11-20 11:54:34
Hi Everybody, I have added a webbrowser in my application for HTML Editing.Now i need to check if focus is on webbrowser i..e.,if cursor is present on webbrowser to make some event to occur.I used IHTMLDocument4::hasFocus Method but it is not serving the purpose when i click on a button to...
Hi,I'm trying to communicate with a USB mass storage device. I'm opening the device with CreateFile(), and using "\\\\.\\PhysicalDriveX" or "\\\\.\\CdRomX" as the HANDLE parameter. The problem is that there can be more than 1 LUN in the device, and the individual LUNs can be hidden, which...
2484 byte By
rutu at 2007-11-20 11:54:36
Hi, In my project i am having a ListBox and some other options to create Images On the view. When ever i am adding any images this will create image on the view and simultaniously it will add an entry to the ListBox. Also if i will select any entry on the ListBox the the corresponding image wil...
Hi,I have to develop flash media driver to support permanent storage for our device, which have win ce on it. currently we are using RAM based file system.is there any need to develop filesystem again or by just implementing low level routins (driver ) for accessing flash memory is sufficient.it wou...
Hi,,<br/>Is it Possible to include DLL project into the MFC Activex project's solution??<br/>Thanks. <br/>Ashish Bhatt
104 byte By
rutu at 2007-11-20 11:54:56
Hi, <br/> I want to delete a object from the view when delete key is pressed . How to do this?
Hi,I have a Win32 GUI application that is a COM client as well. It is built using ATL Static link option. We have build the application using Visual C++ 7.1. I want to ensure that the application should work on all machines it is deployed to. Thus we need to package all DLL the application depends o...
389 byte By
fawzma at 2007-11-20 11:55:01
just wanted to share a method I have come up with to texture-map. I've included a flash 9 demo as well as the class source and darkbasic pro source. Move the blue dots around to change the triangle and u.v coordinates, as well as the brightness and time scale.Calling it Time Texturing for nowht...
160 byte By
DCSSR at 2007-11-20 11:55:15
Anyone know of good reference / sample code for using Visual C++ to draw very high speed rotating objects such as a wheel rotating at 5,000 rpm.<br/>Thanks
6367 byte By
DeepT at 2007-11-20 11:55:19
I have this application that is a service and runs as Local System. It has very high privileges.For the most part, it has no problems reading and writing to the registry. It has been running on many computers for quite some time and this has never been an issue.However, this morning I have a bug r...
1187 byte By
utkseth at 2007-11-20 11:55:20
HII have a circle with multiple lines passing through the center. Currently i am able to select and grab the circle as a whole( along with the lines) and the individual lines and move them around space.I want the motion of the lines to be restricted to the plane in which the circle is currently draw...
I am trying to convert the project I am working on to use a rebar. I want to place three toolbars already extant in the project on the rebar but have come across several problems:1. I can get the toolbars on the rebar but where the toolbars used to be there is an almighty grey space. I want to put t...
530 byte By
mdumont at 2007-11-20 11:55:25
First, I am not sure if this question belongs here or in the Graphics forum.I am a novice programmer and want to display a table in my basic program. I just want a simple excel-looking table where I can insert values in the cells. I was told it can be done but I have no idea on where/what to start l...
252 byte By
Tamiz at 2007-11-20 11:55:26
I am a beginner in VC++. I wish to create a help guide project. I need to know create a single document or multiple doc or dialog based application for this project.<br/>Will anyone give me a rough idea to begin this project.<br/>Best regards
760 byte By
zspirit at 2007-11-20 11:55:36
I save a file which takes a long time, the time is not an issue right now. While it is being saved, if I press save again, now there are two save operations in progress and there is obviously an assertion.I enclosed the save into critical section so the next time user press save, it will not execute...
I have a c++ app that uses a managed dll through <gcroot>In german OS only, this app is crashing only if a dialog in the managed dll was shown, I cant reproduce this on my dev machine. It only happens after closing the application and ExitInstance is finishes executing.I'm assuming that s...
812 byte By
zspirit at 2007-11-20 11:55:48
My problem is this, when save is in progress and I want to disable the save button in menu as well as the corresponding button in toolbar (part of rebar).void CTestDoc::OnUpdateFileSave(CCmdUI *pCmdUI){ pCmdUI->Enable(!m_bBusy);}So when I start saving, I set m_bBusy to TRUE and than to FALSE when...
In Windows Vista with administrator privileges.<br/>hSCMan = OpenSCManager(NULL, NULL, SC_MANAGER_ALL_ACCESS);<br/>hSCMan always return error 5 = ERROR_ACCESS_DENIED<br/>In Windows Xp always works OK.<br/>What I need to do ?