snahl's Q&A profile
Software Development for Windows Vista It seems UAC will block dll Register
For registering a DLL. The UAC seems will block user to use Regsvr32 to register DLL. It will appear DLL register problem 0x8002801c and 0x80070005. Except to turn off the UAC (User Account Control). Does any one know how to prevent this kinds of problem By the way I offer the way to turn off the UAC. In classicall view, [Settings] --> [Console Panel] Press [User Account] --> [Change security settings]. It will pop up a dialog to show UAC. Just turn off it. I have done it through the command prompt. I had to right click on the short cut and choose to run as administrator. EDIT: This allows ro run regsvr32 without security errors. ...Show All
Visual C++ strange error :-S
BITMAP HdcToBitmap(HDC hdcNeedle, int needleWidth, int needleHeight) { HDC memDC_Needle = CreateCompatibleDC(hdcNeedle); HBITMAP memBM_Needle = CreateCompatibleBitmap(hdcNeedle, needleWidth, needleHeight); SelectObject(memDC_Needle, memBM_Needle); BitBlt(memDC_Needle, 0, 0, needleWidth, needleHeight, hdcNeedle, 0, 0, SRCCOPY); BITMAP bmpNeedle; GetObject(memBM_Needle, sizeof(BITMAP), &bmpNeedle); return bmpNeedle; } There are some questions that remain - where are you getting these APIs from What sort of project did you create What IDE are you using As nobugz said, the errors you're getting make no sense, they appear to be errors in the calling convention of the APIs. ...Show All
.NET Development how to retrieve from existing file
hi, I'd like to get data from existing file. I downloaded yahoo! logo to my computer. Then I go back to Visual Studio, go add item, existing item, then yahoo.jpg. Then go to Form2.cs I'm trying to something like shown below; m_BrowserLogoPictureBox.Image = Image.FromFile("yahoo.jpg"); But if I run it, it says "FileNotFoundException". When I test the other project, I successfully compile. I though I did the same thing but it doesn't compile. If anyone can help, I appreciate it. Thanks. Thank you for the tip. I could surely get logo data if I did what you told. It's a bit difficult for me to understand the code from "Image.FromStream(System.Reflection.Assembly.GetE ...Show All
Visual Basic Keyboard sendkeys
Hello, In a windows Form I have two buttons : One to navigate on the Web The other one to send to the active page ( in my example : "google"), a string (in my example : "test".) I do not see on the Google welcome page the "test" indication arriving !. What is wrong Thanks for your help ! Public Class Form1 Private Sub Button1_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click mybrowser.Navigate( "www.google.fr" ) End Sub Private Sub Button2_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click My .Computer.Keyboard.SendKeys( "test" , Tru ...Show All
Visual Studio Express Editions Where do I start, Classic-C++ or .NET style?
Hey there everybody. I wanted to learn Visual C++, completely in and out. But now I can't decide where to start. Do I start learning : i) The Classic style, Visual C++ 6.0 using the windows.h header an' all, OR ii) Do I start with the .NET Eventually, I wanna learn both. But can anyone tell me which would be the better way to start I know the generic C++ completely (I've worked on Turbo-C++, which means I don't know the windows core libraries). I have several questions, I'll just organize them into a list : Note : I refer to programs written in C++ using the windows.h header as Classic-style C++, and those C++ programs using .NET as C++ .NET, or simply .NET 1) Where do I start, Classic or .NET 2) Which is of higher prior ...Show All
Visual Studio How Can We Improve the Help Documentation and Sample Code?
Hi All, I wanted to start a thread here for anyone who has an idea to make the Crystal Reports for Visual Studio Help and Sample Code better. Is there a sample missing Have you got a sample that you think is really useful Is there something missing from the documentation Is there a better way to organize it for you Make a post in this discussion or check out Crystal Reports for Visual Studio 2005 on the MSDN Wiki Beta , and add your own comments and samples to the documentation! I look forward to seeing your recommendations! Thanks, Ashley Lessard (Business Objects) Crystal Reports for Visual Studio Program Manager This posting is provided "AS IS" with no warranties, and confer ...Show All
Visual Studio Express Editions Finding location of file - Question and suggestion
The "Solution Explorer" shows filenames, but not complete paths. It's easy to think you are editing or running a file in one directory when in fact it is a file with the same name in a different directory. This can be particularly confusing if you intended for the "solution" tree to mimic the directory structure of your source code, but made a mistake. The only way I've found to determine where a file is located is to use the F ile/Save foo.cpp As -- dialog and then cancel after seeing where it would save the file. Question: Is there a better way to see where a file is Comment: I think the location of the file should at least be viewable through right-click P r operties, and perhaps even settable there. When I left-click, nothing ...Show All
Windows Forms Automatic update of label text bound to a class property updated by another thread
Hi, I'm having troubles with a data binding between a label text and a class property. I have a class like this: public ref class TestClass : public INotifyPropertyChanged { public: virtual event PropertyChangedEventHandler ^PropertyChanged { void add(PropertyChangedEventHandler^ value) { this->propertyChanged += value; } void remove(PropertyChangedEventHandler^ value) { this->propertyChanged -= value; } }; virtual void NotifyPropertyChanged(String ^info) override { propertyChanged(this, gcnew PropertyChangedEventArgs(info)); }; property unsigned int ToW { void set(unsigned int tow_){ tow = tow_; NotifyPropertyChanged("ToW"); } unsigned int get() { return tow; } }; private: unsigned int tow; event Pr ...Show All
Game Technologies: DirectX, XNA, XACT, etc. the project file '...csproj' cannot be opened
Hello, I have Visual C# Express, XNA Studio Beta 2, Visual Studio 2005, September CTP of .NET 3.0 and Orcas installed on my machine. I uninstalled XNA beta1, installed XNA beta2. Then I tried opening up a WPF project in Visual Studio 2005. The XNA beta2 installation breaks Orcas and WPF projects. the project file '...csproj' cannot be opened. The project type is not supported by this installation. To fix the problem I had to uninstall Orcas after installing XNA beta2 and then reinstall Orcas. Big pain... Tested this on multiple machines and it does the same thing. Other people seeing this problem What is the cause Travis Hi Kevin, I'm trying to create a sharepoint sequential workflow library ...Show All
Visual Studio Express Editions Pausing a slideshow
Hello, I am working on a program that displays a picture and records a persons reaction to that photo with a camera. It is being used for research and often the trials are quite long. Currently I cannot pause the program. I am planning on using multiple threads to put the application to sleep until it is woken again, but frustratingly I can't figure out how to handle the keyboard input to trigger this. (Think of this part of the program as a form with 2 buttons on it and a picture) Any keyboard input handlers I write for the form cease functioning as soon as I add in the buttons. How do I direct the input to the form Thanks in advance! Cameron Thank you, that has bro ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Some basic query about XNA Game Studio Express
Hi, My question might be little irrelevant to this forum, but I could not stop but ask since the XNA Game Studio Express Beta2 has been released. I was thinking how relevant the game development expereince in XNA Game Studio Express I was thinking od writing a new engine in my part time and was looking for some option for game development Api. I have good knowledge in OpenGL and now was thinking od writing a game engine using Managed DirectX. While considering different options the idea just popped into my mind that why not using XNA express Now my question is how relevant the expereince of XNA Game Studio Express in professional game development world If someonw developed a game in XNA express is this expereince count into XBO ...Show All
SQL Server RB - New table info didn't show up on the Report Builder report
Hi All - I'd like to add some more info to an existing RB report by adding a new table. I am able to add a new table to DSV and build relationship. I am also able to add the table to report model as a new entity and source fields. The report model gets rebuilt and redeployed without problem, and the old report still runs fine. But when I open the report in report builder and want to add more info, the new table/entity/attributes are not showing up at all. A report that already contains data displays the entities related to the data already in the report. If your new entity is not related to the data in the report, you will not be able to select fields from that entity and add them to your report. If the en ...Show All
Silverlight (formerly WPF/E) FontFamily property on TextBlock does not work.
I have the system font "Times New Roman" installed. The following XAML renders in a sans-serif font, not Time New Roman. When I access the FontFamily property of the TextBlock, "FontFamily" is returned. alert( "The FontFamily is: " + textBlock.FontFamily); shows "The FontFamily is: FontFamily". < Canvas xmlns = " http://schemas.microsoft.com/client/2007 " xmlns:x = " http://schemas.microsoft.com/winfx/2006/xaml "> < TextBlock x:Name = " michael " Canvas.Top = " 93 " Canvas.Left = " 93 " FontSize = " 16pt " FontFamily = " Times New Roman;Serif " Foreground = " #FF5A5A5A " Text = " Michael S. Scherotter " /> </ Canvas > Please advise, Michael S. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. XNA with other languages
Hello, my name is Brian i am an Indie developer looking into the XNA. My question is, will XNA ever be able to be used with VB.net and will microsoft allow it as a language to be used whilst creating Xbox 360 and Windows games than you. If you mean Half Life/Crytek/Quake engine type stuff - its unlikley at least in the near term. Engines of that complexity and detail are tuned at the assembly language and GPU level to insane lengths by teams of experts. However, you should be able to get pretty close if you have the know how, time and most importantly the art skills. ...Show All
Windows Forms How to Create a DataTable
How do i create a new Data table and add a colum to it with a text row...and i need it to create new rows as i add to the table...any links on how to get this done I got the table created with this code and my row appears but i cannot edit my row and put some text in it.....Anyone know what could be wrong here is check it out DataColumn c1 = new DataColumn("B/L No", typeof ( string ),BLNo); System.Data.DataRow POrow = _RefNoOne.NewRow(); this ._RefNoOne.Columns.Add(c1); POrow.BeginEdit(); // do i need this to be able to edit the row this ._RefNoOne.Rows.Add(POrow); this ._dsAdditionalRefNumbers.Tables.Add(_RefNoOne); this .dgRefNumbers.DataSource = this ._dsAdditionalRefNumbers.Tables[0]; ...Show All
