anil_m_s's Q&A profile
.NET Development Unmanaged code
Hello, If I'm posting to the wrong forum please advise. Thanks. I have just started using visual studio .net 2003 (C++) and have created a windows form .net application which I have put quite a bit of time into, but now have found that I am not able to include wininet.h without getting a bunch of compiler errors. Could someone give me a sample of a way around this problem by using dllimport, pinvoke or reflection, I have run across all of these methods through out my web searches but they were usually written in some other language other than c++. If you can give me general way to make wininet "InternetDial" to compile I wou ...Show All
Windows Forms checking brush color in paint event override
Hi, I am overriding paint event of datagrid to change the backcolor of datagrid cell. I want to check if the cell color is not red then change cell color otherwise dont change color. In protected override void Paint(System.Drawing.Graphics g, System.Drawing.Rectangle bounds, System.Windows.Forms.CurrencyManager source, int rowNum, System.Drawing.Brush backBrush, System.Drawing.Brush foreBrush, bool alignToRight) Which argument should I put in If condition To set the color I set backBrush = Brushes.Red so I guess I should check the backBrush for the color but the problem is that there is no backBrush.Color prope ...Show All
Windows Forms Hi can some one help me on this ( its not a big question )
Hi i am new to Visual Studio 2005 so sorry for asking this daft question, what it is i am after finding out how i can make my own style UI insted of using the standerd buttons and windows form thing, i would like to make my own style window and buttons. please could some one please tell me if this can be done and maybe point me to some were that shows a little on how thi can be done Thank you Thank you, i have managed it now it was just buttons and background i was after and i just used images that i made in PS for that ...Show All
Visual C++ using a vb6 dll in vc++?
is it possible to use a vb6 dll in vc++ how do i access the properties(variables) in a vb6 dll (using let and get in vb6). for example i have 5 properties defined in the vb6 dll, 4 of which having write-access and 1 read-only access, how do i put values using c++ in those properties with write values and get the value of the property that has read-only access. Are properties and functions in a vb6 dll treated the same when used in c++ overview of what im trying to do: im trying to create a c++ dll that will read the properties of a dll made in vb6. is this possible Pls. do help me out. Thanks in advance. ...Show All
Visual Basic invalid parameter
Can anyone tell me why this throws a system.argumentexception:Invalid parameter Imports System.Drawing Public Class form1 Inherits System.Windows.Forms.Form # Region " Windows Form Designer generated code " Public Sub New () MyBase .New() 'This call is required by the Windows Form Designer. InitializeComponent() 'Add any initialization after the InitializeComponent() call End Sub 'Form overrides dispose to clean up the component list. Protected Overloads Overrides Sub Dispose( ByVal disposing As Boolean ) If disposing Then If Not (components Is Nothing ) Then components ...Show All
Software Development for Windows Vista win32 application
Error 1 error LNK2019: unresolved external symbol _MAPIFreeBuffer@4 referenced in function "public: virtual long __stdcall CMailRuleClient::ProcessMessage(struct IMsgStore *,unsigned long,struct ENTRYID *,unsigned long,struct ENTRYID *,unsigned long *,enum _MRCHANDLED *)" ( ProcessMessage@CMailRuleClient@@UAGJPAUIMsgStore@@KPAUENTRYID@@K1PAKPAW4_MRCHANDLED@@@Z ) mapirule2.obj I get this error when I build my project. Can you help me what is the problem I tried to change some settings about linker but nothing changed. thanks. I also have another error too: Error 1 error LNK2001: unresolved external symbol _CLS ...Show All
Visual Studio Team System VSTS - Error creating team project (TFS30177 - Team Foundation creation failed)
Hi, I recived this error after installing the VSTS and I tring to creat a new team project for the first time. Does any one know about this problem This is my log file: Module: Engine Event Description: TF30162: Task "SharePointPortal" from Group "Portal" failed Exception Type: Microsoft.TeamFoundation.Client.PcwException Exception Message: Unable to connect to the Windows SharePoint Services at DIRECT-TAESPPWQ Exception Details: The Project Creation Wizard was not able to connect to the Windows SharePoint Services at DIRECT-TAESPPWQ. The reason for the failed connection cannot be determined at this time. Because the connection failed, the ...Show All
Game Technologies: DirectX, XNA, XACT, etc. DirectX vs. WPF
A friend of mine said that Avalon was dropped off and renamed to DirectX 10. Based on the theZBuffer.com, there is no DX10, and from what I know, Avalon has been renamed to WPF. So what's the connection between Avalon, WPF, and DirectX (10 ) Are they sharing the same code, or one's just using another's API Thanks! You are right that Avalon was the codename for WPF (Windows Presentation Foundation). WPF use Direct3D 9 to render a vector based UI. WPF is not dropped as it is one of the three main parts of WinFX. As WPF supports 3D effects you can build 3D games with it but it supports only a limited subset of the functions th ...Show All
Visual Studio 2008 (Pre-release) Implicit IEnumerable<T> via casting?
So an idea I might test later tonight: can an object define implicit casts to IEnumerable<specific type> such that the following is resolvable: datastore = Some Datastore with Customers, Orders, Products, etc foreach (Customer c in datastore) { .. } foreach (Order o in datastore) { .. } foreach (Product p in datastore) { .. } or must it be explicit Of course, in the above example, each source within the data store must have a unique data type. I see some interesting uses. Aside from the above, which represents implicitly selecting one enumerable from many contained within a single object, conside ...Show All
Visual C++ Another wrinkle....
I'm trying to recompile some old code that was formerly working under vs6, and I'm not having any luck in vs2003. Specifically, #include <strstrea.h> #include <fstream.h> However, the error I get is "Cannot open include file: 'strstrea.h': No such file or directory". I have other C library includes that work okay (e.g. <stdio.h>) so I'm not sure what else to try. Any Thoughts And, yes, it's been quite a few years since I've looked at a line of c or c++ code. I hope this helps Definitely! I'll check it out and see how it goes, but at ...Show All
.NET Development Code when called from procedures but not when called from button events!
I have what I consider a weird problem. I have two procedures, <scrsave> and <scrcopy>. They run perfectly when I call then from button events as I did during debugging. Now when I try the same procedures by calling them from code rather than button events they seem to not work. The first saves a screen shot to a picture box while the second copies a portion of the screen shot to another picture box. I can call the first from the form load event but that is the only code call I can make to either procedure. The second picture box is visible on my form and when I run the code I can ...Show All
Windows Forms how to add the two (PictureBox,Button) in DataGridView's one same cell(VS2005)
I want add PictureBox and Button in DataGridView's one same cell. is my question correct I come from China,but my English is not good. if the question to ohers is not understood ,please tell me. ...Show All
Visual Studio 2008 (Pre-release) DHTML and XAML
Hi All, I have seen the ironpython demo of dynamiclly creating xaml objects to a window http://www.longhornblogs.com/rrelyea/archive/2005/11/25/IronPython_and_WPF.aspx and i was wondering if it is possible to do something similar with DHTML. I have created xaml demo gadget for live.com http://microsoftgadgets.com/forums/1585/ShowPost.aspx but i was wondering how far can it go. If the xaml code was on the same server could we access the the DOM on the XAML iframe and dynamicly add elements via DHTML Has anyone tried this thanks slyi ...Show All
Visual Studio 2008 (Pre-release) What is the equavilent of ServiceContract(FormatMode ...) in Beta 2?
In beta 1, ServiceContract attribute had a parameter called FormatMode which we can use to specify a different formatter. The parameter is gone in Beta 2. Does any one know how should I specify that I want to use XmlSerilizer instead of XmlFormatter in beta 2 Thanks. [ServiceContract] [XmlSerializerFormat()] interface IMyContract { ... } ...Show All
Visual Studio Express Editions Reading HTML source that is inside wb.Navigate
My program is coming along nicely, except that now I cannot figure out how to read the HTML source of a webpage that is sitting inside wb.Navigate in my form. There is specific info I would like to take out of the source, and populate 2 variables with that data. Are there any resources you could direct me in to look at pulling data from a HTML source file Thanks! Ken Did you get any responses for this I am having the same problem and there is nothing on the net that really helps.. Thanks ...Show All
