Alien72's Q&A profile
Visual C++ How to get handle of a formview?
I developed a MFC singledocument application in VS2005. Then I added two formview, named IDD_FORMVIEW1, CVideo1, and IDD_FORMVIEW2, CVideo2. How can I get the HWND, or m_hWnd of every formview When I define a object in view.h as: CVideo1 aVideo1, it said webcamex6aview.cpp(30) : error C2248: 'CVideo1::CVideo1' : cannot access protected member declared in class 'CVideo1' 1> c:\documents and settings\fangming\my documents\visual studio 2005\projects\exercise\webcamex6a\webcamex6a\video1.h(13) : see declaration of 'CVideo1::CVideo1' 1> c:\documents and settings\fangming\my documents\visual studio 2005\projects\exercise\webcamex6a\webcamex6a\video1.h(8) ...Show All
Smart Device Development Running a DLL like an EXE
Hi, This may seem like a silly question, but is it possible to have a DLL just run by itself I know that the registered DLL will be accessed at startup by it's DllMain function (and then it's xxx_Init function... or is that wrong ), and this function will lock out all other processes. So I can't just go linking the rest of my program from there. But, is it possible to spawn a thread during the start up functions so that the program will continue to run Basically I want to just use my functions in a never ending loop in the background, so to write an EXE which just sits there calling the function seems a bit wasteful. Thanks for your help. Dan. I pretty sure XXX_Init and all other XXX comma ...Show All
Visual Studio 2008 (Pre-release) where is the RENDER function like other 3d designing technologies
Hi, I have created a fairly complex 3d object using ZAM3d, the object when i create and render using the "render window" function in zam 3d is pretty good looking but when i convert the same to the xaml the LOOKS are lost. the diff. is visible in this http://img514.imageshack.us/img514/1761/renderdiffmt7.jpg is it possible to do something like "SupressRender" to have the same looks in xaml a well. Thanks and Regards, Brij Tier 0,1,2 are related to the capabilities of your graphics card, they determine what work is done in hardware on the graphics card, and what work has to fall back to software rendering on the CPU. These are not seperate phases. WPF does not perfo ...Show All
Windows Forms A little trouble with custom controls
I am just trying to make an interface in VC++ 2005 which when you click on the various tabs or sidebar buttons you get a different UI for a different part of the project. As there would be about 6 screens in total, and all containing lots of components, I thought the best way to keep tthings seperate would be gto have each screen as a custom component, and then have them fill a panel on the main form, which can be changed depending on the mode selected. I made the custom controls, and the main form, but when I type the code to add the custom controls, I get an error in designer mode: "Could not find type 'MainForm.GraphScreen'. Please make sure that the assembly that contains this type is referenced. If this type is a part of your ...Show All
Visual Studio Express Editions How to find missing numbers
I am trying to figure out code to determine which numbers are missing from a column within a datagridview based on a number entered by the user. In other words, if the user enters 10 into a textbox and there are 3 rows of data in a datagridview that contain 2, 5, and 7 in a column named Number, then I need a string result to be "1 Or 3 Or 4 Or 6 Or 8 Or 9 Or 10". Can anyone help me I'm sure it has to involve For, Next statements and possibly some If, Then statements, but I can't follow the logic and put it to code. For an added challenge, The "numbers" in the column are actually strings, with the number 1 displayed as "001", the number 10 as "010", and the number 100 as "100". But, ...Show All
Visual Studio Express Editions mathematical operations combining the data from richtextboxes
I am having difficulty adding two richtextboxes and putting the result into a third. I cannot find how to change the data from 'string' to 'integer' so that the result will be correct. I am trying to write a program to play a mathematically involved board game, and want he program to perform the math functions automatically. HELP!!!!!!! I tried this method and got a formatException that stated my input was in the wrong format. Would it help if I changed the RichTextBoxes to standard TextBoxes Or is there a better way ...Show All
SQL Server Data Conversion Error on Excel Destination
I am inserting rows using OLEDBDestination and want to redirect all error rows to EXCEL Destination. I have used Data Conversion Transformation to Convert all strings to Unicode string fields before sending it to Excel Destination. But its gives the following error. [Data Conversion [16]] Error: Data conversion failed while converting column 'A' (53) to column "Copy of A" (95). The conversion returned status value 8 and status text "DBSTATUS_UNAVAILABLE". [Data Conversion [16]] Error: The "output column "Copy of A" (95)" failed because error code 0xC020908E occurred, and the error row disposition on "output column "Copy of A" (95)" specifies failure on error. An error ...Show All
.NET Development DataTable select problem!!!!!!!!!!!!!
Hi ya, I have 2 data table objects declared in my code. both have got a unique SID field. Now both table can contain any no of records. I just want to have a query like this "select * from [table1] where table1.SID <> (select SID S from [table2])" I tried to look at table.Select method but it doesn't work somehow. How can i do it. The only other solution i can go with to create a temporary table in sql server 2005 and then drop it after this whole thing is finished. Is this the right way/code to go with The datatable supports only rudimentary queries. like "Field=value" The query you wish to perform has to be done in the database. ...Show All
SQL Server Report Model deployment, results in "Object reference not set to an instance of an object"
I am attempting to deploy my first report model using Visual Studio 2005 Microsoft SQL Server Reporting Services Designers Version 9.00.1399.00 and I get the following error message "Object reference not set to an instance of an object". How can I correct this error Thanks in advance for your assistance. Anyone have any luck running report builder against an Oracle RDBMS ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Game Programming is very Hard
I've been reading DirectX sdk tutorials and MDX tutorials and things like that, and it seems VERY VERY VERY hard. Will this new XNA studio and the documentation simplify this All these vectors and whatnot is very complicated and I'm having trouble understanding seemingly basic concepts in game programming in 3d. Many people look down on game programmers but they don’t know that games are one of the most difficult things to program. It funny that when I am working on my resume or talking to a recruiter about a job I feel embarrassed when I talk about any games I have programmed. So yes game programming is not for everyone like they say on TV, give programming a try and if its not for you there are many more things you can do ...Show All
Visual Studio Team System Encrypted values in QueryString Parameters
Hi, We have recorded a web test and after the script is generated we find that there are few encrypted values in the request. Please find few sample request below ==================== Dim request18 As WebTestRequest = New WebTestRequest( https://qa- ) request18.ThinkTime = 2 request18.QueryStringParameters.Add( "Header_Id" , "ZjaaaKSoX6YkTLXoAfrnpQ%3d%3d" , False , False ) request18.QueryStringParameters.Add( "Sc" , "82cd1XJzrSzSyKV3Cy5%2bUw%3d%3d" , False , False ) request18.QueryStringParameters.Add( "Index" , "uEBrMvrdMkGDemlwKGVRhA%3d%3d" , False , False ) request18.QueryStringParameters.Add( "ReadOnly" , "XNoVULiY ...Show All
Visual Studio Express Editions Replacing Text with Text from another form
For my program I need to be able to take text from one text box where the user will enter information and include that in a text box with information. (ex. for an aircraft callsign, Cessna N4734W is entered in a textbox on one form, then when they are viewing another form, the text wil need to have the callsign in the info - Cessna N4734W, requesting takeoff - or something among that sort.) I also need to know howto make it so when a button is pressed, that information will be entered into a textbox. The textbox where the "request takeoff" part is a masked textbox. This is a major part of my program and I need any help anyone can provide me with! Thanks it doesnt grade, it just tells them ...Show All
Visual Studio Team System Illegal Characters in Path
Hi i am facing issue in copying files from one destination to another. TFSBuild.proj looks like this < Target Name = " AfterCompile " > < Exec Command = " " c:\Program Files\Microsoft Visual Studio 8\Common7\IDE\devenv " " c:\projects\cp\CP1.1 SP1\BVT_100506\Sources\Release 1.1 Sp1\Source\Assemblies\MS.CP.ServerSolution\MS.CP.1.0.ServerSolution\MS.CP.1.0.ServerSolution.sln " /Build " Debug|Mixed Platforms " /Project MS.CP.WebService\MS.CP.WebService.vdproj " /> < Copy SourceFiles = " " c:\projects\cp\Debug\MSCPWebService.msi " " DestinationFolder = " " $(OutDir) " " ...Show All
SQL Server Help on one colum
Hi, I have a column in SQL that needs to be created. This column needs to start with 10 zero's. If I add a number, say 135 the column needs to read : 0000000135. Is this possible If it is how do I need to go about to do this. If I need to create a view or something like that I do not mind. I am open to all suggestions and appreciate the help. DECLARE @AnyStringNo NVARCHAR(10) SET @AnyStringNo = '135' SELECT REPLICATE(0,10-LEN(@AnyStringNo)) + @AnyStringNo SET @AnyStringNo = '47593' SELECT REPLICATE(0,10-LEN(@AnyStringNo)) + @AnyStringNo Will give ever output in 10 digits with replicating of 0s. ...Show All
.NET Development FtpWebRequest.UseBinary does not work
Hi, I have been working with FTP lately, related to my last post where I had problems with some unix servers when trying to get the size of a file, I have discovered that this property does not work as Microsoft says in his whitepaper . Microsoft says that the use of UseBinary: when True = will send "TYPE I" when False = will send "TYPE A" Well, I traced all the communication between my client and server with a sniffer (ethereal) everything looks ok except that I could never find when the TYPE I is sent, here's the trace: FTP Response: 220 enterprise.local FTP server ready. FTP Request: USER xxxxxxxx FTP Response: 331 Password required for xxxxxxx FTP Request: PASS 123456 FTP Response: 230-No directory! ...Show All
