Charles Darwin's Q&A profile
Visual C++ CreateWindowEx
CreateWindowEx(NULL, "WindowClass", "Sternenfeld", WS_OVERLAPPEDWINDOW | WS_VISIBLE | WS_POPUP, 100, 100, SCREEN_X_SIZE, SCREEN_Y_SIZE, NULL, NULL, hInstance, NULL); Fails with code 0xc0000005 at runtime hInstance is a Var of Type HINSTANCE SCREEN_X_SIZE, SCREEN_Y_SIZE are int - MAKROS VC6 compile works without errors but VC Express 2005 doesn't no MFC or similar is used. Anything to try edit: I can post the disassemblcode if this helps I'll post the relevant code perhapes you can find the problem WNDCLASSEX wndClass = { sizeof(WNDCLASSEX), CS_DBLCLKS | CS_OWNDC | CS_HREDRAW | CS_VREDRAW, ...Show All
SQL Server Shrinking databases or files
Hi, I have some doubts about Shrinking databases or files. while shrinking a file, I learned that we are alllowed to shrink more than the minimum size of the file, does not it bring damage to the data in that file Hi Derek, I understood what you mean finally. When we apply shrinking to our files, we make the growing process start in order to activate the unused spaces(rows). So growing process requires too much performance which shows the inefficiency of shrinking. Besides, heavy shrinking, which is also called that trying to make a file very and very small, is really dangerous for datas in the files. This is the another disadvantages of shrinking. As you said before, we should only apply this method(shrinking) when we drop huge ta ...Show All
SQL Server SQL 2000 SP4 and SQL 2005
Is it possible to have 2 SQL servers differents in the same machine I need to continue to use a DB on 2000 for an old services on BI and start to use SQL2005 for a new application and all in my laptop in order to be able to use them every where. Thanks It should be ok. I currently have both 2000 and 2005 installed on my laptop and I never had any problems in terms of compatibility. So far so good ...Show All
Visual C++ hiding LNK warnings
Basically, I want to get rid off all the LNK warning For ex, LNK4099, or LNK4204, or any other one. I am linking my debug lib with a third party release lib. That's why I am getting those. Is there some kind of "pragma" for the linking step to hide warnings There was the undocumented #pragma comment(linker, "/ignore:4099") but it does not work anymore on Visual Studio 7.1. I is annoying to look at hundreds of these warnings rolling down on my screen. Thank you. I did 1. Create new Win32 console project. (Debug project) 2. Project Properties->C/C++->Code Generation->Runtime Library = Multi-threaded (/MTd). I linked with my release third party library, and this time I get: ...Show All
Visual C++ Version problems in VS2005
I've been given the unenviable task of updating a large number of our unmanaged C++ VS2003 solutions to VS2005 and have hit a rather annoying issue. A number of our libraries contain two version resources, each with different preprocessor conditions. There is usually one for debug and one for release builds( NDEBUG and _DEBUG as the conditions), so that the information for that build is tailored to the library type. Unfortunately when I upgrade that solution to VS2005 and then attempt to look at the resources via the resource editor I get hit with the message 'error RC2135: file not found: VERSIONINFO'. If I delete the version information and recreate them, they all work fine, but it seems that the *.rc files are not infact changing. It ...Show All
Visual C++ CProgressDlg - is it available in VC2005
I remember that in VC 6 you could go to PROJECT | ADD| COMPONENTS AND CONTROLS and select a progress dialog, I cannot seem to find this in vc 2005, does anyone know if this is still available or has it been replaced. It used to generate a CProgressDlg class. Thanks in Advance! I see the same CProgressCtrl based progress bar when I use the ActiveX control Wizard. I am specifically talking about the "progress dialog" component which was available in VC6 under Project|Add|Components and Controls....it was based on a CProgressDlg class, I dont even see this class in the list of MFC classes in VC2005, so is it no longer part of MFC after VC6 Anyone know anything about the "CProgressDlg" c ...Show All
Visual C++ MASM HELP !!!!!!!!!!!!!!!1
I wrote a assembly procedure to implement selection sort. When I call this procedure from selectionSort.cpp file, I got an error like this. * ) Error 1 error LNK2019: unresolved external symbol _selectionSort referenced in function _main selectionSort.obj **) Error 2 fatal error LNK1120: 1 unresolved externals selectionSort.exe I USED LOCAL VARIABLES IN THE PROCEDURE. (for example : maxIndex ) IS A PROBLEM USING LOCAL VARIABLES look at: PUBLIC [[langtype]] name [[, [[langtype]] name]]... langtype must match function type in app file types ie the .cpp ,c ect. langtype types are C , BASIC , FORTRAN , PASCAL , SYSCALL , or STDCALL thus: public _selectionSort shou ...Show All
Visual C# Is there an equivalent to web.config for C# executable?
I have been writing some web applications with C# and find the web.config file to be very useful for many reasons. I would like to know if there an equivalent to web.config for a C# executable. Thanks, Mike MikeTennor wrote: Mark, I'm using .NET V1.1.4322. When I select " ProjectName Properties I don't see any tabs or anything labeled, "Settings." Does this version of .NET have an equivalent to this Thanks, Mike Client Settings are Available only in 2.0 or later. for .Net 1.1 you have to build your own XML file. you can use XmlDocument for this purpose. Check Code project for this. I saw some good article on this over there few months ago. Cheers ;-) ...Show All
Software Development for Windows Vista User assignment via ActiveDirectoryRole?
Hello! I'm trieng to find some kind of out-of-the-box user assginment or to implement it. I took a look at the ADRole-SDK-Sample: There is a ActiveDirectoryRole created and added to a WorkflowRoleCollection. But they were not really used. What can I do with these Activities Can I assign an Actitivity, for example a code activity, to a ActiveDirectoryRole Can I get the manager of a user with the getmanager-method How will the user be informed about the workitem do i've to implement some kind of mail delivery Therefore do I use the WorkflowRoleCollection These sample also works with windows ideties. Therefore Thanks a lot, kind regars, Matti Matti, The following setups the ADRoles: priv ...Show All
Visual Studio How to convert property into item group
I have property defining dependencies <XDepends>a;b;d</XDepends> how can i convert it to item group or somehow iterate on all the values seprted be ; Thanks, Sajjad Something like the below example would convert a property with ; seperated line to an item list <PropertyGroup> <Test>a;b;c</Test> </PropertyGroup> <Target Name="Build"> <CreateItem Include="$(Test)"> <Output TaskParameter="Include" ItemName="out"/> </CreateItem> <Message Text="%(out.Identity)"/> </Target> Thanks, Jay Shrestha ...Show All
SQL Server How can I know No of Connection With My, SQL server!!
Hey Friends !! How can know the number of connection with our DataBase server !! Hope it is easy , But still i don't know ! Use the windows counters: General Statistics --> User Connections Ref: http://msdn2.microsoft.com/en-us/library/ms190697.aspx ...Show All
Visual Studio Express Editions Can anyone provide me with the right code for sending these AT commands using the new SerialPort class?
Can anyone provide me with the right code for sending these AT commands using the new SerialPort class Serial Port Setup COM2 1 start bit 8 bit data No parity 1 stop bit I need to send these AT commands to the device: AT+CMGF=1 follow by a carriage return As soon as I get this string returned Ok I then must send this other AT command: AT+CMGS="7872435333" follow by a carriage return and then follow by Ctrl Z As soon as I get this string returned, I’m done. +CMGS: 242 OK That’s all. Any help will be ...Show All
Visual C# Generics Problem in Operators
Hi , I am trying to design a Generic Method which can add any type of data. while i am compiling it is giving following error: 2 Operator '+' cannot be applied to operands of type 'T' and 'T' Following is the code: Please help using System; using System.Collections.Generic; using System.Text; namespace GenericsConsoleApplication { class Program { static void Main( string [] args) { } } class GenericClass1 <T> { public T result; public T Add<T>(T vara, T varb) { return result = vara + varb; } } } If (ty = typeof ( Integer )) { Return (T)(( Object )(( Integer )a + ( Integer )b)); } Ick! IckIckIckI ...Show All
Windows Forms DataGridView: Double-line header
Is it possible to have two lines in the header I want to group several columns under a bigger group column. And I need two header lines for the columns, one for the individual columns and the other for the group column. If I cannot do this, then I have to hide the header and use two data lines to emulate the header. Thanks! Hi friends, I have one problem in dataGridView, i am using DataGridView for showing data. but the problem i m facing here is that i want to place the column header part in the bottom of the cell , by default it is coming in the Top of the cell please tell me how to place columnheader in the bottom of the cell ...Show All
.NET Development OracleClient DataAdapter
Hi everyone, I have the same error. At the moment, I find a way to use joint table, just define your dataadapter in the code and set the commandtext in the code and do everything in the code... this is only way but i need to generate a dataset becuase i am developing crystal report project so i need to design crystal reports, which requires templates.... anyone can help me plzzz As Paul indicated there isn't much information here. If you could identify the error and post a code sample it might help us answer your question. ...Show All
