Jamie Thomson's Q&A profile
Windows Forms How Do I Display a "Name" Using a "NameID" in a DatagridTextboxColumn
Using a datagrid with a "Name" column and a "ID" column I'm using a DatagridComboboxColumn and I have it set to a DataSource, the problem is I want to display a "Name" using the "ID" in the same row and be able to change the "ID" in the row while displaying only the name. and here is an online convert web for c# and VB for you :) http://www.kamalpatel.net/ConvertCSharp2VB.aspx best regards! ...Show All
Windows Live Developer Forums Other API hooks?
Is it possible us plugin writers will get additional hooks into the system For example, I'd like to hook into the program so I could alter a post just before publishing. This would allow me to do things like reformat the html as xhtml before it is sent (As an example of a feature I really need). I'm sure there are numerous other uses as well. Brian I would also like to see additional APIs, particularly around publishing a post. I would like to be able to hook in to the publishing process similar to the way the ping feature works, but rather than be able to submit pings be able to automatically submit an entry to sites like community-credit. Thanks, Scott. ...Show All
Visual Studio Team System Refactor for Unit Tests
I'm running CTP 7 right now. Question around Rename/Refactor. I have a unit test that tests a stored procedure. I used refactor to change a column. Refactor finds and changes all instances of the column name, except my Unit Test. I thought I heard/read that refactoring does change Unit Tests also. Can you give me a quick update on how refactor works related to Unit Tests BTW, my Unit Tests run perfectly, since they are only calling my SP. Thank you. Randy Yes, Mairead is correct – we do not refactor into the unit testing .resx files be default. It is important to note that when you do refactor unit tests you are modifying the TSql in the tests not the C#/VB code; the TSql is stored in the .resx file for the test ...Show All
Visual Studio Tools for Office Server side Mail-Merge using VSTO2005
I have been trying to get a prototype running for doing server-side mail-merge for the past week now using VSTO 2005 and am going nowhere.. Has anyone been able to successfully do this My constraints are: 1. Avoid having to install VSTO Runtime on client machines 2. Avoid using Word 2003 automation on server since its not recommended. 3. The source documents are a bunch of Word documents stored in a templates folder on the server. 4. We have to mail-merge using a runtime datasource, then send the document over the web using asp.net 2.0. If there is a good sample or article out there, I would really appreciate it. Thanks, JGP Thanks Cindy and Martin for your responses. Ma ...Show All
Smart Device Development I’m beginer in DirectShow.Help me!!!
I`m begining to DirectShow programing and I need help. I have this fuction: void main(){ INICIALIZE(); while (true){ gb.GrabBitmap(Bitmap, BitmapSize) Procesing(Bitmap); } } I need to access to each frame capture for my hardware and procesing it with my software. But the capture is very slow. I try the next code but only capture the first frame and I don’t know how can I do If I don't separete tha INICIALIZATE() function and I include this function in the "while" of the "main" the application work but very slow. // Global Variables CComPtr< ISampleGrabber > pGrabber; CComPtr< IBaseFilter > pSource; CComPtr< IGraphBuilder > pGraph; H ...Show All
.NET Development IO.Stream direct to byte array
I have set up a client / server windows application in VB.NET 2005. The code uses HTTP requests and an HTTP listener to communicate over the network. I send a byte array via the request. GetRequestStream Class. When the listener tries to extract the byte stream I end up with an error because it can't seek; the size of the content varies greatly so I can't guess byte array size. I need to know some way to read the stream into a byte array. Probably a really easy answer, but I can't figure it out. Here is the gist of the code I am using now: Dim inboundBuffer As Byte () inboundBuffer = New Byte ( CInt (ReceiveStream)) {} ReceiveStream.Read(inboundBuffer, 0, [max length]) Adam ...Show All
Visual C++ Question about const_cast
Here's round two of my silly questions. How come this compiles: ---------------------------------- int main (int argc, char * argv[]) { const int test1 = 5; const int test2 = const_cast<const int &> (test1); return 0; } ---------------------------------- But this does not. ---------------------------------- int main (int argc, char * argv[]) { const int test1 = 5; const int test2 = const_cast<const int> (test1); return 0; } ---------------------------------- Error 1 error C2440: 'const_cast' : cannot convert from 'const int' to 'int' j:\test\main.cpp 4 ---------------------------------- I definitely have the latest version of VC++ Express Edition this time. einaros wr ...Show All
Visual C++ Intellisense not working
I've recently installed from scratch XP Pro SP2 (English), Visual Studio 2005 (C++ & C#, which I want to start learning), and SP1 for Visual Studio 2005. Somewhere in the process, intellisense stopped working, as example if I define a variable ' CBitmap X ;' and then 'X.' hoping to get the list of available functions, the following message appears in the status line: Intellisense: 'No additional information available' StdAfx is included, I have deleted the project's ncb file, recompiled the project from scratch, and to no avail. The project is imported from VS6, written in C++, and prior to the reinstallation I had no problems with intellisense. Only difference I can think of is that this time I have installed C# as wel ...Show All
Visual Studio Express Editions c++ code
Hello, Why this code dot work on VC++ 2005 express, but work on Dev C++ If I write something in c++ this should work on any c++ compiler or not I was put include stadfax and nothing. Thanks in advance. #include<iostream> #include<string> using namespace std; void okvir(const int & x); int main() { cout << "Number of lines "; int n; cin >> n; string tekst[n+1]; cout << "\nTekst:" << endl; int a,b = n; for (i ...Show All
.NET Development Run Time Error message
Whenevr I go to a certain Website I get an error message saying, "Running. Time." Can someone please tell me how to fix this problem Also, I have been trying to scan a photo, and I got an error message saying ,"HTTP 404 Not Found. ...Show All
Visual Studio Express Editions How to build a file into one .exe?
Hello, I'm a novice VB programmer, and recently made the jump from VB.net to VB05 with VS:Express. Back when I used VB.net in Visual Studio 2003, when I built a file, it would compile into a single .exe file in which I could then put on any computer I wanted with the .net framework and it would run. However, now with VB05 on Visual Studio Express, it builds my project into multiple files besides the .exe. This causes me to have to send all the other files along with the .exe or else it won't run. Is there anyway to make it so it can make my project into a single .exe with VB05 in VS Express Could this be due to my current project using a Windows Media Player object inside it I recently read about Ilmerg, but have not had a chance ...Show All
Visual Studio make wizard check in file after automated edit
we have a wizard that checks out a config file and adds an entry to it when new DAL classes are added. However, our developers frequently forget to check in the config file when they are done. Is it possible to make the AddConfigEntryAction programmatically check the file back in so they wont have to remember thanks I don't know where is that AddConfigEntryAction action coming from, but you could definitely modify it to do so. However, from a separation of concerns perspective, I'd say the check in/out operations belong to two different actions that should be run before and after the configuration change action. This will maximize their logic reuse if a similar need appears for some other operation. ...Show All
Smart Device Development Wireless Networking Problem in HP iPAQ
Hi Friends, I am facing some problems regarding access of Wireless LAN in my office using my HP iPAQ Pocket PC (model HP hw6515e iPAQ). The Pocket PC is preloaded with Windows CE and has Bluetooth networking support. But in my office I only have IEEE 802.11g Wireless LAN . Can someone please tell me what additional H/W I need to add to my Pocket PC for connecting to 802.11g WLAN . If possible plz give me the configuration of the Network Card to be added in the SDIO slot along with the manufacturer name. Moreover also tell me what additional Drivers are required for the WLAN card and how to acquire / install them . Thanks in advance. Regards, Amiya. ...Show All
Smart Device Development Difference between .NETCF 1 WinForms and .NETCF 2.0 WinForms.
Hi, I need the difference between .NETCF 1 WinForms and .NETCF 2.0 WinForms. Can any one help me out. Thanks in advance. I’m not sure what exactly you mean by “difference”, but you can compare OM here: http://compactframework2.net/compare/ ...Show All
Gadgets newbee problems.
Hi I'm currently developing a gadget that works a bit like the rssFeed. Also good to know is that I only use JavaScript. My question to you all is, how do I access all the variables that i set up in the .js in the main gadget, when i have opened the flyout window. when i try to use them in a function they come back undefined... this is probably not tloo difficult, but i would appreciate an answer Its safer to access the main gadget page from the flyout - that way if the flyout goes away you don't end up trying to access a deleted element. var gadgetDoc = System.Gadget.document; gadgetDoc.getElementById("gadgetFieldSomeName").innerHTML = "some text"; ...Show All
