Puffychan's Q&A profile
Visual Basic CLR error: 80004005
I am using Visual Studio 2005 on Windows Server 2003. All service packs are installed. I first had this problem when trying to distribute an application for testing so I then created a simple application to try and narrow down the problem but to no avail... I create a simple Windows Application that has a single form with a single button on it that, when clicked, shows a messagebox with the words 'Hello World'. I compile it and run it fine but when I install it on another PC I get the following error on startup: CLR error: 80004005. The PC it is compiled on is a Windows Server 2003 with all service packs installed. .NET framework ve ...Show All
Visual Studio Express Editions Creating an independant application
Hey there, I've been playing around in Visual Basic Express 2005 and I have a question. I want to take my program from Visual Basic and turn it into a standalone executable file. Something that I could send to my friends (Who do not have Visual Basic Express on their computers) and let them open the file up and use the program. How would I do this I have tried the "Build Program" command but it doesn't let me open up the executable file (.exe) on a computer without VB Express. Thanks in advance Hmmm, thats no good. I was wondering, if I wanted to put my programs on the internet, is that even possib ...Show All
Visual Studio 2008 (Pre-release) Indigo compatibility with VS
Hi I need to know that which version of visual studio is compatible with indigo. Thanks Hi Ford, No I was referring to the other question posted which said: "But which CTP of VS2005 beta 2 is compatible.Is it april CTP or December CTP " So, I was just trying to clarify the difference between a CTP and a Beta since I felt the user was confusing between a CTP and Beta version by referring to it as "CTP of VS2005 Beta 2" Regards, Vikram ...Show All
Visual Basic Booking System - Advice
Hi Currently building a booking system. Its a cottage system that can be let to customers. One cottage can be let to any one customer for any one specific cottage. In terms of the actual booking component, how would i do this I think i will need to make a relationship between the cottage ID from the cottage table to the cottage ID in the booking table. Ditto for the Customer ID. Am i right Iv read it again and i think im making sense, any advice would be appreciated. I also need to use suitable validation to ensure that anyd ates already booked cant be over booked. Thanx. If your asking about a relational ...Show All
.NET Development how to find if dll is installed in GAC
I have the path of some dlls like - reference.Path "C:\\WINDOWS\\Microsoft.NET\\Framework\\v2.0.50215\\System.Xml.dll" reference.Path "C:\\JaproTestPerforce\\JaproTestWorkspace\\MasterProject\\dev\\src\\_Ma sterSub1Lib\\cs\\obj\\Debug\\MasterSub1Lib.dll" Now I need to find if these dlls are installed in GAC! Is there any .NET framework provided class to find this out (NOT DURING RUNTIME!) The only I an think of is to find if the file is in "C:\\WINDOWS\\Microsoft.NET\\Framework\".. Is there any better way of doing this Any Help would be appreciated. Hi Roopa, Managed code only provides a property ...Show All
Visual C++ access violation when running ported database solution (from VC++6 to VC++8)
I am maintaining a supply chain database solution & am attempting to port it from VC++6 to VC++8(2005 native -NOT /clr) - the solution is composed of 45 projects (an .exe & 43 dlls & a lib) - it uses COM & ATL. I have managed to compile everything successfully after solving some initial errors caused by greater ISO C++ compliance(I think) of the form: was : m_spDBStock = m_spBLStock; now: m_spDBStock = ( const IDBRecordsetPtr &) m_spBLStock; //where m_DBStock is of type IDBRecordsetPtr,which is derived from ADODB::_RecordsetPtr Now a large part of the solution works fine, but a few method calls result in an ac ...Show All
Visual Studio Express Editions Compile to Native
I am using VCEE and am trying to create a dll using /clr, can this be done I get an error... StationFormat.obj : fatal error LNK1306: DLL entry point "public: class System::String ^ __clrcall StationFormat::stnFrmt::toStnFrmt(double,int)" ( toStnFrmt@stnFrmt@StationFormat@@$$FQAMP$AAVString@System@@NH@Z) cannot be managed; compile to native Can I compile to native You can create both managed and unmanaged dlls, so the problem doesn't lie there. For you the problem is somewhere else and to work that out a code sample is needed. Under the linker error messages though it seems that you have ...Show All
Smart Device Development How can Smartphone 2003 native development be done on VS
I am in a process of developing NATIVE win32 apps for Windows Mobile Smartphone 2003. I have come to realize that to develop native apps for the above platforms, I will have to do it in eMbedded Visual C++ 4.0. After working a little bit on VS2005 for Win Mobile 5.0, I am very much missing the Visual Studio experience, I mean the intellisense. I am having to do it because i want to target a device that is based on Win Mobile Smartphone 2003. Is there any way that I can continue to use VS 2003 or 2005 while being able to target the above device at the same time. All sorts of comments are welcome. Vishal Hi Vishal, Which edition o ...Show All
SQL Server Date Conversion throws truncation error
Hi, I am trying to process a flat file feed. My date is in format of YYYYMMDD. The database column is of datatype "datetime". I have tried using all date related data types on FLAT FILE Connection Manager. I have also tried using Data Conversion Component. No luck so far!! Any suggestion Thanks in advance, -Anand I have resolved the issue using following "Derived Column" statement: (TRIM([Maturity Date]) == "") NULL(DT_WSTR,8) : SUBSTRING(TRIM([Maturity Date]),5,2) + "/" + SUBSTRING(TRIM([Maturity Date]),7,2) + "/" + SUBSTRING(TRIM([Maturity Date]),1,4) Cheers, Anand ...Show All
Visual C# SoundPlayer won't play whole .wav file
I am trying to play wav files sequentially using SoundPlayer. I am using the PlaySync method. According to the documentation, program execution should not continue until the wav has finished. I have a test case with a messageBox call after PlaySync. The wav only plays for half a minute to a minute of any song before it stops and shows the MessageBox. I would like to avoid using WMP; I want to keep resources to a minimum. I appreciate any help. An event that would let me know that the wav is done playing would be fine, too. Here is my test case: SoundPlayer SP; private void Form1_Load(object sender, EventArgs e) { SP = new So ...Show All
.NET Development AccessViolationException when client is terminated
Hi, We have just migrated our client/server application to .Net 2.0. After that we constant get an unhandled AccessViolationException in the server program when the client program is terminated! The only stack trace I can get is: at System.Net.UnsafeNclNativeMethods.OSSOCK.WSAGetOverlappedResult(SafeCloseSocket socketHandle, IntPtr overlapped, UInt32& bytesTransferred, Boolean wait, IntPtr ignored) at System.Net.Sockets.BaseOverlappedAsyncResult.CompletionPortCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* nativeOverlapped) at System.Threading._IOCompletionCallback.PerformIOCompletionCallback(UInt ...Show All
.NET Development What should be done first? Class or E/R?
Does there exist a converter from e/r to class diagrams If not I have a question in how to make classes. Suppose I havea Person table and a Role table, the person may have many Roles, so I have an intermediate table that relates rows from both tables right I am customed to make E/R diagrams and not classes, How would I make those 3 tables on a class diagrams Thanks Creating ER stuff, also as XSD, gives u general view of the system, like interface, w/out concentration on the realization. Besides, there are a lot of instruments that generate code from ER for u. Now about DAL. I reckon u need 2 DALC - one for person and other for person ...Show All
SQL Server SQL server authentication / app microsoft SQL management studio express
I'm newbies in microsoft SQL I did try to create a new login using "SQL server authentication" option and it failed According to the error message the "SQL server authentication" is not supported by Microsoft SQL Server Management Studio Express. Is it true Also When I did install SQL 2005 express I did check The "SQL server uthentication" and supply user and password but it does not appear in Microsoft SQL Server Management Studio Express under security/logins. Here the error message. Can someone help me TITLE: Microsoft SQL Server Management Studio Express --------------------------- ...Show All
Visual Basic Webbrowser printer settings
Is there a way to modify the printer settings when using the webbrowser.print() method I want to set these option without the user seeing the print setup dialog. I've tried all of the various registry "hacks" but they have never fully work correctly. I've been searching for a complete solution to this problem since 2001 and it seems like printing an html document with programatic control over the settings is impossible ...Show All
Visual C++ CComVariant LPSTR and LPOLESTR
I'm porting some code from VC++ 2003 to VC++ 2005 and started receiving a very strange linker error: unresolved external symbol "class ATL::CTraceCategory ATL::atlTraceException" ( atlTraceException@ATL@@3VCTraceCategory@1@A) unresolved external symbol "public: static class ATL::CTrace ATL::CTrace::s_trace" ( s_trace@CTrace@ATL@@2V12@A) unresolved external symbol _AtlTraceVA After commenting out everything until I hit the "bad" code, I found the following line to be the offender: CComVariant vBarName(L"Standard"); I tried replacing this with: CComVariant vBarName("Standard"); and even: BSTR bstr1 = SysAllocString(L "Standard" ); ...Show All
