MarcIrvin's Q&A profile
Visual C++ Grid Control
Hello All, i want to use a Grid control in Visual C++ Application. My purpose is to display some fileds in saparate columns of Grid and to change the appearance of grid cells at a particular values of cells fields. i didn't find any grid control in control toolbar in VC ++. How can i do it Thanks and Regards Munish Gupta Ovidiu Cucu wrote: pintu* wrote: or you can use a ListControl with report Style. Correct, but will be not so easy to No gain Without pain. ...Show All
Visual C++ CFile Data Removal probs
Is There any short way to remove some lines from a file say there is a file called Hello.dat contains 5000 lines 1) In that i just want read first 200 lines 2) Preform some operation 3) remove them i.e. 200 lines if the operation is successful //This is the problem i.e. the third task Some efficient was i.e. without creating another file i.e. new file Sarguna Unfortunately, it seems the Operating System does not allow shortening of a file by removing data at the beginning. It only allows truncation of the tail. Therefore I think it is not possible to solve your problem without read and write operations (on the same or two files). But I would consider the following approach. The first value of your file should be reserved: i ...Show All
Visual Studio Branch project from batch command line or vbscript ole automation
Is there anyway that I could branch project using batch command line or vbscript ole automation I search command line reference, but I can't not find parameter for branch source and branch target. Please help. Thanks I could create share and branch from VSS explore; however I would like to do it from command line. I've tried command line below but it not work. Like I said I did not get any error and nothing happen. ss cp $/projects/01 ss branch $/trunk/project01 ...Show All
.NET Development Derived classes - how to find derived class' attributes from base class
Hi everyone, I come from a PHP background and I'm starting a new project in C#.net 2005 (express). My question regards base classes and getting a list of attributes of the instantiated derived class from within the original base class - i.e: Have base class declare a function that will set all the attributes of the instantiated class from a provided hashtable. Pseudo-code: --------------------------------- class base() { protected populate_from_array(Hashtable in_vals) { foreach(object[] entry in in_vals) { if (entry[0] is one of the calling classes attributes) attribute = entry[1] } } } class whatever : base { public string name; } //main programming loop: Hashtable w_vals = new Hashtable(); w_vals.Add(" ...Show All
Visual Basic Automatic Namespace generation in VB
I've just finished a dll written in VB. I've never bothered with namespaces much until now, but this is a bit complex, so I've arranged it into sub-folders, with a top-level class, a few sub-classes (and base classes), and other classes that hang off some of the sub-classes. Every class has the same "Namespace Handler" around it. Looks garbage in the object viewer - every class is under the root namespace. When using the object however, it looks fine, i.e. you only see the correct sub-sub-classes hanging off the correct sub-classes, etc. However, one of my colleagues who talks C# had a look at my code, and commented that my namespaces were not declared properly, then we discovered that when coding in C#, the namespace line wer ...Show All
Visual Studio 2008 (Pre-release) Streaming WebService
Hi; I'm working on developing a media Streaming WebService, utilizing the Windows Media Service (on Windows Server 2003) and ASP.Net. However i'm new to this and need guidance on how to achieve this. What i did so far is as follows: Set up the server. Created publishing point using the wizard. Now i need to develop it programatically and start the streaming. Appreciatre your help. Thanks You don't need WCF to do this, you can programatically create and manage publishing points using the Windows Media Server SDK. More information can be found at http://msdn2.microsoft.com/en-us/library/ms738748.aspx . ...Show All
Visual Studio Team System Custom Build Summary Report
I've followed the example at: http://blogs.msdn.com/aaronhallberg/archive/2006/08/29/730447.aspx to add custom build steps. Does anyone know if it's possible to add links in the build step message ...Show All
Software Development for Windows Vista FindFirstUrlCacheEntry and COOKIE_CACHE_ENTRY
Hi, I'm trying to enumerate the cookies on a user's machine and present them to the user along with the associated cookie information. Using the FindFirstURLCacheEntry(Ex) and FindNextURLCacheEntry(Ex) API functions I can do this successfully in Win XP (and in Win XP with IE7 installed so it does not appear to be an IE7 issue). After having looked at the msdn entry for these functions they are listed as supported in Vista but, despite having cookies on my machine and confirming as much by looking in the cookies directory, these functions are not listing out the cookies. Is there a new API to retrieve them or is Vista storing the information differently or are they just flagged differently and it hasn't been documented Any he ...Show All
Windows Forms Problem displaying image with alpha
Hi, I'm having some problems displaying an image with alpha. Here's what I have // get the image bits from an handle IntPtr imgBits = GetSurfaceBits(m_surfaceId); // create a new bitmap from these bits m_bmp = new Bitmap(512, 512, 4 * 512, PixelFormat.Format32bppPArgb, imgBits); To display it: private void panel1_Paint(object sender, PaintEventArgs e) { using (Graphics g = e.Graphics) { // clears the panel to blue g.Clear(Color.CornflowerBlue); // this doesn't do anything if (m_bmp != null) g.DrawImage(m_bmp, 0, 0, m_bmp.Width, m_bmp.Height); } } I'll just get a blue panel when doing this. The bitmap is correct because if I do: m_bmp.Save("test.png", ImageFormat.Png); the image gets saved correctly ...Show All
Game Technologies: DirectX, XNA, XACT, etc. XACT audio sounds cutting out
Hi all, I have a static class I'm using to play sounds loaded in the content pipeline through an xact audio project. In my game, several of the same sound can be played within a few milliseconds of each other. They're basically explosion sounds. Now when I hit more than three of these objects and they play their sound within a short space of time, the sounds cut each other out and sometimes don't play at all which is very poor. I'm not limiting instances in the audio project although I've tried every permutation of this I can think of anyway. I know about the garbage collection issue when using cue objects that aren't referenced etc. but I'm actually just using soundbank.playsound and not getting the cue object at all. ...Show All
Software Development for Windows Vista Information about identity provider is missing
Hi I Tell my Customers about CardSpace and then they ask me how to build an identity provider, What are the best practices for the STS etc... and I Do not know I found a lot of information about using the cards but None (Theory) about creating them and about building the STS for CardSpace cards. I asked in the forum but nothing !!! Is it a secret I need more than samples I need the theory. Thanks for your help manu You can find tools and documentation for creating managed cards here: http://cardspace.netfx3.com/files/folders/samples_rc_1/entry5996.aspx Tools and documentation regarding the STS you can find here: http://cardspace.netfx3.com/files/folders/samples_rc_1/ ...Show All
Windows Live Developer Forums Still not working
I have the same messenger problem, when people try to send me a message it say message could not be delivered to all recipients. I can start a conversation and I can receive messages back. But the problem is when people are sending me messages. ...Show All
Visual C# file dialog and richtextbox question
hi how can i load the file that i have selected from the openfile dialog box into a richtextbox i've tried this Code: openfiledialog ff=new .....; ff.showdialog(); richbox.loadfile(ff.filename); but it didn't work also ,if i'm selecting a files with different extension than txt but in the file it self the data are text and it could be opened by a text editor , how can i load it too to a richtextbox " the extension is TFTP" it throws an exception with this message file format is not valid and marking the last line the code above ...Show All
SQL Server Basic Full Text search question
Hi I am just starting to do a full text search on a sql 2000 database. My question is: If I want to query a table Employee for 1. a particular word in a very large varchar field named "resume" 2 - a boolean field named "willtransfer" and 3. a field that holds the index of another table named "Cities" Cities just holds an index and cityname field of 15 characters. do I create a fulltext index for all three fields or only the "resume" field since it is the only field that is being searched What would a query for these 3 fields look like if I am searching for. I have seen no examples that combine multiple fields. "speaks French" in resume, "true" for "willtransfer & ...Show All
Windows Live Developer Forums Bug using window.external.Users and IE7
Hi, I've been working on a Messenger activity and keep running into a problem with Live Messenger and IE7. For instance, if I create a web page and include this script in the body: <script type="text/javascript"> if (window.external.users.inviter === window.external.users.me) { document.write("I am the Inviter."); } else { document.write("I am not the Inviter."); } </script> On a machine running IE6 it works as expected on IE7 I get an error "Library not registered" Any help is greatly appreciated. This is a HUGE problem! Thanks. My computer sucks.... I reinstalled Messenger and the error went away. Now there's a new problem ...Show All
