Arkman5's Q&A profile
Visual C++ C2664 cannot convert from 'System::String ^' to '_bstr_t'
This may seem silly, but how do you convert from a managed System::String to BSTR or _bstr_t or ANY other string (const char *, etc.). This would be required to call an old COM interface from a managed C++ app. If this has already been answered I apologize. I searched but did not find anything. Helper functions and constructors and member operators have been known to help. For example in the days of MFC it was possible to just write CString("sometext") and if the compilation target was Unicode then the CString constructor would do the conversion automatically. It was possible to just w ...Show All
SQL Server DTC error with concurrent data flows
I have a package that has several data flows that run concurrently after some initial tasks and an initial data flow. I want transactions on each of the data flows and have set the transaction option to Required on the data flows (not on the package itself). I am also using checkpoint restart on the package. A couple things are happening. 1) the first data flow is successful and that releases the several that are waiting. Some of these complete OK but inevitably one or two will fail. The failing data flows will be different from run to run, sometimes one and sometimes two will fail. The error says: Error: 0xC0202009 at Provider_NF_Co ...Show All
.NET Development How to catch the exception of remote server close down?
I have a client/server application using remoting. It works fine. But when I close the server, the client will become hanging over in the middle of an exception dialog(view details, continue, quit one) display. Only if I re-start the sever, the exception dialog become clickable and exception contents are displayed. It says the connection to the remote server is closed. The worst is I cannot using try-catch block to catch this exception. Who can tell me a solution. I use 'timeout' property on HTTPChannel but it doesn't work. Chester from Calgary. Hi Chester, can you paste in the exception message along ...Show All
Smart Device Development WM5 Error:'EXE name' is not a valid Pocket PC application.
Over the past week I've been migrating our projects into VS2005 and recreating project profiles for WM5.0 and with the help of this forum I've been able to work through all the compile/linking issues and all projects are compiling properly now. I still have a bit of work to do in this department however for the most part its complete. My question is I'm attempting to run the exe & dll's on a WM5.0 device and I'm getting this "'EXE name' is not a valid Pocket PC application." error. I have read some of the threads on here and have followed the instructions regarding ARMV4I/THUMB//QRarch4t project settings and everyth ...Show All
Visual Studio VCBuild failure when running msbuild.exe App.sln
I have a solution with a mixture of C# and C++, MC++. I'm using the August CTP of VS 2005 Pro. If I execute: devenv.exe App.sln /build Debug It builds just fine. However if I do this: msbuild App.sln /p:Configuration=Debug /clp:NoSummary then on the 2nd project (MC++) I get the following error: Target Appmix: __________________________________________________ Project "C:\App\current\Src\App.sln" is building "C:\App\current\Src\App man\Appman.csproj" (GetTargetPath target(s)): &nbs ...Show All
Windows Forms ClickOnce file extension registration
In the ClickOnce FAQ at http://www.windowsforms.net/FAQs/default.aspx PageID=2&ItemID=17&CategoryID=24&tabindex=2 it says: "Some low impact tasks such as file type registration can be achieved with first time app-startup logic in your application" How can I register a file name extension which will invoke my ClickOnce deployed application If one can find the .exe on disk and register this one then ApplicationDeployment.IsNetworkDeployed is false. So this seems like a dead end. Any help would be appreciated. /Lars The ClickOnce Runtime is not capable of creating File Type Association ...Show All
Windows Forms databinding & automation
Does Vstudio .Net enterprise edition support data binding to window forms using Vb.net or C# for using MS word 2002, i am trying to pull my data from sql enterprise manager. but i am coming up with difficulties, any help. i dont think that ms word 2002 is supported by .net apps, due to some vb6 edtiors available kinda lost thanks for the help Yea well i got on a roll first off using the MS 10.0 object library and i was able to interact with the word document, but my problems came up when i wanted to pull certain data from the SQL tables and automate letters in the fields but i used ado.net to make the connecti ...Show All
Visual Basic Migrate Windows Forms applications to Web Forms
I wanted to see if any of you have found information, classes (online or classroom), products etc. for migration of Windows Forms to Web Forms Our shop is currently using VB.Net 2003 and wants to migrate a couple of applications to the web using VB.Net 2005 if possible. Thanks! Thanks, we sort of expected that response. I'm going to put the team through a couple of web classes (ASP.Net) and then migrate. We've done a great job of keeping the logic out of the presentation layer knowing that this application would be moved eventually to the web. Thanks for the input! ...Show All
Visual Studio Team System Creating new Work Items (bug) if Team Build fails
VSTS RC0 and TFS beta3. Maybe this is in the docs somewhere, but after looking around here I go: I set up a small Team Build Type and set it to run the unit tests. How do I get back new work items if the build fails (I'm already set up to get alerts when the build completes and status changes) Thanks, Niels That is correct. We provide out of the box support for creating work items upon build failure but not for test failures. As described in the blog, you need to tweak around to create work items upon test failure. ...Show All
Windows Forms Dynamically instantiating COM modules
I am working on implementing the Profibus Guideline specification. This specification defines several com interfaces that work together as a framework that enables a plug and play kind of architecture. The plug and play happens when the "frame application" determines all the supported device by scanning the component category manager looking for Category ID for all&n ...Show All
Visual Basic R
Hi, I am using VB.Net 2.0 and have connected to Microsoft Access but having trouble running a query as it uses * as a wildcard, but when I run it in .Net it returns nothing as needs to have %. The solutions I can think of are: 1) If I was able to extract out the actual SQL string from the MS Access query from my code then I could do a Replace("*", "%") then would work - but don't know how to extract the SQL string. 2) If there is some way to make the query work with the * then that would also solve my problem. The problem is that I have to run through 850 MS Databases (Student Lab Tests) so can't just chang ...Show All
Visual Basic Manipulating an object
I’m wondering if it’s a reasonable approach to manipulating an object where I store some data by passing it as a reference to another object that displays the data and enables me to modify the data as needed, rather then putting all of the code to store, display, and modify the data all in the first object. I’m also puzzled as to how to pass the reference within the second object. I can use ByRef to get the “address” of the data object into the display object, but how do I get various subs & functions within the display object to work with the original data If I was doing this in ANSI C, I could declare a pointer to the type of obje ...Show All
Smart Device Development Goods Books on Windows Mobile 2003 and 5.0
Hello, Does anyone know of any good books on Windows Mobile 2003 and/or 5.0 Thank you for your help, Hello For native C++ development the following book is really good: Programming Microsoft Windows Ce .Net, Third Edition by Douglas Boling, Microsoft Press Michael ...Show All
.NET Development .NET SSL Problems
Hi I am running a .NET web service and remote class inside IIS I have a self signed Certificate for security on the virtual directory. When the web service attempts the access the remot class i get the error "The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel." I believe that because the certificate isn;t signed by a root authority the certificate is being rejected. Has any had this problem before and how did you get around this problem (How do i get IIS to accept its' own certificate) Thank you in advanced Hi, I just had the same problem ...Show All
Visual Studio Problem with RemoveDir and MakeDir
Hi, I've got a simple MSBuild project that looks something like this: <ItemGroup><MessageFiles Include="..."><Out>...</Out></MessageFiles></ItemGroup> <PropertyGroup><IncDir>foo</IncDir></PropertyGroup> <Target Name="Clean"> <RemoveDir Directories="$(IncDir)" /> </Target> <Target Name="Build" Inputs="@(MessageFiles)" Outputs="@(MessageFiles->'$(IncDir)\%(Filename).h')"> <MakeDir Directories="$(IncDir)" /> <MsgToHeader MessageFile="%(MessageFiles.Identity)" HeaderFile="$(IncDir)\%(Filename).h" /> </Target> <Target Name="Rebuild" ...Show All
