1206 byte By
Ted. at 2007-12-5 22:14:11
As the bar has raised as to what bugs are being considered for fix ( for those who haven't read, please see: http://blogs.msdn.com/vcblog/archive/2006/05/30/610989.aspx )what is the choosing strategy for service packs with respect to the compiler? As SP1 for Visual C++ 2005 had a very short d...
885 byte By
spore1 at 2007-12-5 22:14:05
Hi,I'm getting a blue screen with error code 0x18: REFERENCE_BY_POINTER with my thread termination code. the code looks something like this:***INIT:PsCreateSystemThread (&handle, ...);ObReferenceObjectByHandle (handle, ..., &ThreadObject, ...);ZwClose (handle);***IN THE THREAD:while (some event...
1320 byte By
djodra at 2007-12-5 22:13:59
Hi,I am developing a dll in C and I have one problem that I don't know how to solve... An external application invokes my dll by calling the function:int calculateParameters(int, int)I need to return to the application the value "OK" indicating that the passed parameters are correct as soon as...
393 byte By
susiriss at 2007-12-5 22:13:54
Dear Friends, I just want to detect the presence of a computer identified by its IP address on the LAN. I found several APIs which seems to have a link with Winsock ,about which I know nothing right at the moment. So can you suggest the easiest method to do that. A code...
684 byte By
AlexDR at 2007-12-5 22:13:49
I'm trying to convert the low rigth corner of my full screen app from screen coords to 3d world coords.This is my C# code:Matrix mView = device.GetTransform(TransformType.View);Matrix mProj = device.GetTransform(TransformType.Projection);Matrix mWorld = device.GetTransform(TransformType....
274 byte By
kpartha at 2007-12-5 22:13:43
I am trying simple task manager where I want to display the list of the process .<br/>I would like to display each process's command line argument.<br/>How can I get the process command line arguments. I have the process handle.<br/>Thank you in advance.
292 byte By
jom20 at 2007-12-5 22:13:38
Hi,<br/>I have a MFC application that I am trying to run, I included a .lib in the application and the tried to link it, which then produce the warning vc60.pdb is missing debugging information for reference module. Does anyone has any idea as to how to fix this problem.<br/>Thanks
Sorry about the beginner question, but I am sort of stumped.I have a program that asks the user for the title of the window should be, then adds "title " to the beginning and calls system(UserEnteredTitle); But i get an error message that says error C2110: cannot add two pointers. How can I set a us...
494 byte By
YuraSV at 2007-12-5 22:13:27
Hi!I have to use dll library in my project. But I can not even load using it LoadLibrary(). I have suspicion that my dll is 16-bit (because I can load it under Windows 98 using LoadLibrary16() and I can not load it under 2000).How can I find out whether dll is 16-bit or 32-bit?The second question: L...
I try to use the Office 97 style Colour Picker control from Chris Maunder into my own project, but have some dificulties. Has someone experienced the same ?I have no problems at all executing the ColourPickDemo.exe file coming with the demo project download. However, a simple recompile of the demo...
828 byte By
enierop at 2007-12-4 23:57:14
Hi,I used VC 7 and 8 and also 6 a short time. I use VC because it is no option for me, to add mixed code, or a dotnet assembly with wrappers only to COM interfaces, while I must be sure, that my clients =will be= supporting DotNet 2.0 down to windows 2000. So I use VC++ 8.0My biggest advise: Don...
429 byte By
Tomzie at 2007-12-4 23:57:13
hello there,I'm a newbie in the world of writing drivers. I noticed that it is a whole different way of programming then when you develop an application.My question now was if it is possible to use code I use to create an application in the code from my driver. I need to develop a screen captur...
725 byte By
shahin at 2007-12-4 23:57:12
Hello AllI have a quite general question about Hyper threading in windows and how it effects the speed of a program and ....My limited understanding is that Hyper threading is a way of simulating a "Dual processor" . It is also for some operations to be performed at the same time ( am I right).I hav...
Hi<br/> What is presentation format ? I am confused with the difference between inet_pton and inet_aton . Can anyone explain it with some example ?<br/>Thanks a lot
86 byte By
Reunion at 2007-12-4 23:57:10
Hi!<br/>Help me please to moke a fast Gaussian Blur filter.<br/>Thanx in advance.
Hi Guru,Assuming I have an edit box and "send" button. After typing something in the edit box, I can send it either pressing ENTER or click SEND button.How can I implement the "Pressing ENTER" action, without clicking SEND button ?Meaning that Pressing Enter after finishing typing in edit box will h...
205 byte By
Justis at 2007-12-4 23:57:07
i get all sorts of problems when trying to compile and link cpp code into a .NET assembly where the cpp code uses the string library.<br/>anyone else has experienced these problems?<br/>cheers.<br/>j.
I need help debugging this small piece of a program that I am making right now. My topic is: Develop a medical program to identify common childhood illnesses based on the symptoms exhibited. I researched illnesses and symptoms and started to put a spreadsheet together to group the symptoms that are...
354 byte By
AndySoft at 2007-12-4 23:57:05
I want to make an Internet Cafe application used for distributing internet over several internet stations. The server is able to talk with clients an do many command based tasks. My question is:What type of socket should have the server? More connecting sockets or a single accepting socket?PS: I wan...
In version 4.x of Visual C++, you could use class wizard with a static library by adding a resource to the project. <br/>In version 5, this feature no longer works. Does anyone know of a way to enable class wizard when working within a static library?<br/>Thanks
339 byte By
Ted. at 2007-12-4 10:39:32
A Managed C++ to C++/CLI converter has been alluded to many times in the past as something that was under development. Could this please be released, even under the guise of an unsupported sample? The window of usefulness is quickly passing for such a tool (as people would have found other ways to...
321 byte By
Jooo at 2007-12-4 10:39:31
Hi guys,Now what iam trying to do is to use some APIs in a existing driver to play with a device.But my problem is when each time i run the initialize i got a error message i.e"Error in vendor ID. eeprom content is not ok"any one know what is this mean?Thank U very much in advance!! :)...
New question on PostThreadMessage & shared memory I tried the functionality of PostThreadMessage and mapping file (shared memory)on a console test harness and they work fine.However, when I copy my testing code to an NT service, both of them seem no longer work. Should PostThreadMessage work with an...
97 byte By
kmashif at 2007-12-4 10:39:29
did any body use the API WNetDisconnectDialog1()..i need that example..mine does not work..thanks
1078 byte By
dc_2000 at 2007-12-4 10:39:27
Hello:Here's the code to capture desktop into a bitmap:HBITMAP CaptureDesktop(void){ //Capture desktop into bitmap HBITMAP hBitmap = NULL; RECT rcDt; HWND hDtWnd = ::GetDesktopWindow(); HDC hDtDC = GetDC(hDtWnd); if(hDtDC && GetClientRect(hDtWnd, &rcDt)) { //Create mem DC & bitmap int w = rcD...
810 byte By
AbinLee at 2007-12-4 10:39:26
Hi..I wanna get the smbios structure in Win32 environment (95-Xp)I heard four methods to do this:1. Use direct memory access. Smbios information stores from 0x0000f000, we can parse this area into useful data. But it can't be implemented with 32bits application in NT+ envirnoment because of OS&...
531 byte By
dampier at 2007-12-4 10:39:25
I have written a simple program using a form (win32 project). the program calculates meters, given the mass of a metal and domensions. I have visual c++ .net on an xp machine. I have built it and it works. I then used a setup and deployment -> setup project to create a windows installer package (...
I had a class on C++ a few years ago and I am trying to brush up the little skills I have of this language. I am creating a program that lets you choose from 4 different games. When I choose a game to play it automatically goes to the first one no matter what game I choose. It also skips one of t...
I cannot modified the MENUITEM "&Hide/Show Icon", IDC_HIDE_ICONSfor checking or unchecking.how making?my popupmenu is initialised in class CDialog:int CClrBgDlg::OnCreate(LPCREATESTRUCT lpCreateStruct) { if (CDialog::OnCreate(lpCreateStruct) == -1) return -1; // assign a menu, icon, tooltip, a...
1620 byte By
Stege at 2007-12-4 10:39:22
Folks !I've encountered a strange problem with a small dialog-based app. I use MSVC++ 6.0 SP3, WinNT 4.0 SP5 and DAO 3.51 (access97)I wrote a small dialog-app, that is capable of importing a non-replicated database into a replicated database master. In the first place, I distributed the app wit...
431 byte By
Ted. at 2007-12-3 19:26:02
What exactly is MQ that was briefly mentioned here: http://blogs.msdn.com/somasegar/archive/2005/11/08/490694.aspxand http://blogs.msdn.com/texblog/archive/2006/03/01/541918.aspxIs it a process? Strategy? Set of techniques? Or is it simply a set of priorites?What were the main lesssons you learned fr...
Hi There!I have a USB Composite device that has 2 interfaces : 1] A keypad interface [detected as standard on a WinXP and Win2k system] 2] A audio interface [detected as standard on a WinXP and Win2k system] The device is connected to a phone. I have to do the following : 1] Send a message to pu...
690 byte By
menny_ed at 2007-12-3 19:26:00
Hello,i'm programming a multithreaded communication application. Some of the communication operations are being hold in a a shared (for all threads) synchronized queue. the synchronized queue is using c++ 'CRITICAL_SECTION' handle (using the 'EnterCriticalSection' and '...
I want to know how can i use VPN (Virtual Private Network)in my application for connecting a remote LAN client.i am explaning situation bt following figure:---- ------ --- ---|Machine A| --- >> |internet(WAN)| ---->> |Server|-- >|M...
3564 byte By
HotChick at 2007-12-3 19:25:58
Hi! I've got a problem about using threads to do my image processing in the transform function of my transform filter. My main problem is that when I'm processing big images of large samples, the video renderer seems to drop frames. So I thought of instead of processing a single sample lin...
I have a perfectly working namespace extension to windows explorer. Now I want the right window (The shellview) to be split into two rows (dynamically) and filled with two listviews in the panes. I've found SplitterWnd does this in a dialog-based program but here all I have is the IShellView in...
Why do most namespace classes provide explicitly named constructor methods while others do not. For example, the File class and the Console class do not provide constructors. At least I don't see them while using my Object Browser in Visual Studio. It appears from tradition that you call thei...
225 byte By
Vaderman at 2007-12-3 19:25:54
If i have 5 STL lists with, lets say, 10 different numbers that are unique to each list, is there a way where, in STL perhaps, I can just sift out all the numbers that are common to all 5 lists?<br/>Regards<br/>John
1043 byte By
VGirish at 2007-12-3 19:25:53
Hi, I am new to ActiveX and i created my first control today. It compiled succesfully and i was able to set a few properties in the ActiveX Control Test Container. It worked fine there. Then , i created a new dialog based application and tried to use my control there. It compiled without any errors,...
1523 byte By
cbing at 2007-12-3 19:25:52
Hi:Sorry about my english, I know it doens't very well. Now I will try to explain my problem.In a Dll, I have defined three user-message types as follow:---#define WM_SIMULATION_END (WM_USER + 0x0F0)#define WM_SIMULATION_ERROR (WM_USER + 0x0F1)#define WM_THREAD_READY (WM_USER + 0x0F2)...
In the introduction to the C++/CLI Langauge Specification it is stated that one of the goals used in the design of C++/CLI was to"Provide first-class support for Standard C++ features ... for all types including CLI classes."Unfortunately, there is a major ommision in C++/CLI, namely const correctn...
I went to MS homepage to download sdk but i couldn't. I don't know why.during the time I stayed there, my left eye's eyelids kept "trembling", which is a sign, my mother used to say, of being missed by someone. Now that it turns out as a myth that my computer can't install the sd...
971 byte By
Gyannea at 2007-12-1 0:35:05
I seemed to have found out the hard way that I have to have a separate message loop to create a window in a thread. This is a terrible discovery since its the last thing I want to do is to burden this critical thread with a message loop...I want to keep it exclusively for handling sound data and DS...
Hello I derived a class from the CSocket class. I'm trying to make the Send() function in a thread but the program is just freezing . Heres the code :// declarationclass CPSock : public CSocket{ DECLARE_DYNCREATE(CPSock)// Attributespublic: typedef struct SENDPACKAGE { CPSock* _this; co...
How DDraw surface can be create in 32-bit ARGB format ?All I found ddsd pixelformat must be correctly initialized..Here is my 'out-of-work' code..This only create RGB32 mode surface. Alpha value ignored completely..What can I do that ?I need some sample code... hr = DirectDrawCreateEx(NULL...
i currently doing this multiple inheritat progam but it does not seem to complie even though errors seem the non existance. or maybe i just too dumb to spot them.<br/>file is attached, your help will be blessed!
744 byte By
Abwehr at 2007-12-1 0:35:00
I have a 100,000+ line Win32 (non-COM) LIB file with many classes and global functions that I need to be able to access in C#. I had assumed that given the "integration" of .NET's many languages, this would be easy. Oops.I guess probably the best way to do this is to make a Managed C++ wrappe...
384 byte By
BrianB at 2007-12-1 0:34:59
(I am using borland builder 6)I have a std::string , of variable length, that contains hex. The hex is guaranteed to be the equivilent of numbers, not characters (its source is a field in a packet).How would I convert this hex string to an int ? I was thinking sprintf, but i dont see how. Please pos...
I'm trying to compile a "native" C++ project using VS.NET.Everything compiles, but I get a strange linker error message:LINK : fatal error LNK2023: bad dll or entry point 'msobj10.dll'!'?FCreateReader@IDebugSSectionReader@@SA_NPAEIPAPAV1@K@Z'Any glue?...
4243 byte By
cnd12001 at 2007-12-1 0:34:57
Hello everybody,Here is my problem.I wrote a program that does a statistical analysis, allocating large quantities of memories (3-400 MB) dynamically, and then performs cycles of calculations on the data.At the end of each cycle, the program opens 2 files in sequence and writes the results to the di...