JohnInTampa's Q&A profile
Visual C++ How to handle CString in COM Interop
Hi, I have a C# dll which has functions: public string a() { string aa; . . return aa; } public void b() { } and a wrapper header created by system when I added MFC type library of C# dll into unmanaged c++ has: CString a() { CString result; InvokeHelper(0x60020005, DISPATCH_METHOD, VT_BSTR, (void*)&result, NULL); return result; } Now I am trying to get return value of a() and convert to char *, but follo ...Show All
.NET Development Creating Arrays in Tables
How do I create an array in a SQL database table Any advice would be very much appreciated. For small tables, I pack the array of values into a comma-(or whatever)-delimited string. It's not very efficient or elegant. A BLOB (big chunk o' binary) is not a bad idea, if you can parse the BLOB efficiently. The best answer might depend on the data types in the array. ---Mike ...Show All
Windows Forms How can Implement a string Collection Editor in a property Grid
Hi I have done some reserch how to implement the above,however I get lost in more complex examples I have found in codeproject and so on. What I want to do is when showing my propertyGrid I want to have the ability to have a collection editor of strings. For example sake lets say I want to have a collection of car Models. THe problem i have is that i see the collection editor but when I press Add I get "Constructor on type system.string not f ...Show All
Visual C++ XML Documentation /doc option
The title of my post is broader than this specific question, but I'd thought I'd make this a general thread about this topic. My issue: I'm getting warning c4633 when I try to use the <param> tag in an XML comment on main(argc, argv). Apparently, the compiler is trying to match my parameter (argc) to one in a different main function. I am doing this with the simplest possible program: ///<param name="argc">a count</param> int m ...Show All
Windows Forms Custom ToolStripItem
Hello, For custom toolstrip items, I want to create a custom one. Can custom toolstrips be user controls Will the toolstrip accept user controls as a custom item Brian Check out this link: http://www.codeproject.com/cs/miscctrl/Office2003ColorPicker.asp Check out the ToolStripColorPicker, it is derived from ToolStripItem and it is a custom control. If you need simple example, let me ...Show All
Software Development for Windows Vista WF on embedded Software
Just wanted to ask if it is also planned to support WF on embedded clients os, such as windows ce, windows mobile edition. Regards Yves Hi Paul I just posted an example at http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=252885&SiteID=1&mode=1 However since you mentioned that it often makes more sense to let mobile devices participate in a workflow rather than to host them, I wan ...Show All
Visual C++ CDialog::DoModal asserting in CWnd::DestroyWindow
To Brian and Martin, who were involved in helping me out with this , please don't shout at me... This thread does follow on from that post - and I'm now investigating refactoring a static library which contains a few MFC classes into a shared DLL - using __declspec(dllexport) to export functions and classes that will be needed across all facets of the solution that need the shared functionality. I've looked all over the place for an ans ...Show All
Visual Studio Express Editions How do I make a windows form that can be dragged over the screen without title bar?
Hello I was wondering how do I make a windows form that can be dragged over the screen without using a title bar. It would be really handy. I will appreciate any help you could give me. thanks in advance. Jason I assume you know how to create a form with no title bar. As the title bar is what's used to move a form, you need to catch mouse events in your form and move it's position yourself to create this sort of effect. ...Show All
Windows Forms BUG: Inheritance using custom controls
Here's a bug for you and a simple example to go with it. I assume it's a bug since I've spent almost a week now on every message board and newsgroup I can find and there simply is no information on this problem. I can  ...Show All
Windows Forms Dropping controls in a custom UserControl
Hello, I'm trying to develop a "Collapsable groupbox". To accomplish that, i've created a UserControl with a groupbox and a button so the groupbox can "open" and "close". I've created a designer derived from ParentControlDesigner to make sure that my "groupbox" can parent other controls when it is used in a WinForm. The only problem i'm facing right now is that when i drop a control in it, it ...Show All
.NET Development Unspecified Error
Hello I administer a windows 2000 webserver running iis. We have a website setup that uses a access database and lately were getting errors every now and then for a few minutes and we cant track down the cause. Ive searched the internet for AGES and havnt found anything of help. I was hopeing that some one here might be able to help. Here is all the information we can get out of asp. Theres nothing in event logs. If some one can help o ...Show All
Visual Studio Tools for Office VSTO Outlook AddIn and ASP Page
I have a folder in Outlook under my Inbox that I created with a VSTO AddIn. On the Home Page tab of the properties window it is pointing to an asp.net page that load data from several data sources and needs the signed on user id. On the web site definition I have disabled anonymous access and have Integrated Windows authentication checked. In Outlook when I click on the folder it prompts me for an user id and password. When I browse to this ...Show All
Microsoft ISV Community Center Forums reportbuilder
Hi all, I have seen forms in databases where users select from unbound fields and click a button that would give them a report based on their selections. Here's is the code but it give me an error "object required" Private Sub cmdPreview_Click() On Error GoTo Err_cmdPreview_Click Dim strSQL As String Dim strnewQuery As String strSQL = strSQL & "[" & ctl.Name & "] " & " like " ...Show All
Windows Forms progress bar , repainting form and threading
This is my code..the problem ofcourse progress bar once started works fine..after browsing thru other forms and returning back to this form only repaints it when progress bar functionality is complete. private void button2_Click( object sender, EventArgs e) { demothread = new Thread ( new ThreadStart (ProgSafe)); demothread.Start(); } private void ProgSafe() { if ( this .progressBar1 .InvokeRe ...Show All
Visual Studio Team System No migration occurred: No files from solution are under source control
I'm trying to migrate code analysis settings from a Team project to a solution. Only thing that happens is that the message "No migration occurred: No files from solution are under source control" shows up in the VS status bar. The solution file and all the projects it contains ARE under source control. IWe have three Team projects on our Team foundation server. The migration works fine for one of them (first in alphabetical order), ...Show All
