Salvador Cadena's Q&A profile
.NET Development Best Place To Locate Connection String and Other Initial Information?
New guy here...thanks for your patience ... I have a console application I'm building w/ .Net 2.0, C# and SQL Server. When the application starts I would like it gather some "initialization" information. Maybe a couple of items like its name, log file location, etc. I definately need a way to provide it w/ a Connection String so it can log in to a named SQL Server with either WAM or a user id/password. I'm familiar with the idea of using a config file for my application. I've seen the .Net 2.0 stuff on AppSettingsReader and other items. I'm wondering what's the preferred practice to store a ...Show All
Visual Studio Tools for Office Deployment issue......may be?
Hi - I am having a weird issue with my word solution. Here are the steps I am doing: 1. Created the solution using VSTO 05. 2. Copied solution dll and document to another folder 3. Granted full trust to the dll. 4. Open the doc and saved it as a different name. When I open the document at step 4 all functionality of my smart document works but after I save as a different name and open it next time, smart document features don't work anymore. Can anyone tell what is the issue here if the document isn't loaded locally you should trust also the document itself and not just the assembly ...Show All
Visual C++ How do use conventional C++ Code with Visual C++
Goodday I cannot seem to create any programs with Visual C++ I am not getting anywhere the only program that works is Hello World: #include <iostream> using namespace std; int main() { cout<< "Hello World\n"; return 0; } Not even the test win32 application want to run and i did everything like you explained Please Help Peder Really Because for other hundreds of thousand of programmers it works. So, can you explained what you tried to do and what exactly doesn't work ...Show All
Game Technologies: DirectX, XNA, XACT, etc. DirectX vs. WPF
A friend of mine said that Avalon was dropped off and renamed to DirectX 10. Based on the theZBuffer.com, there is no DX10, and from what I know, Avalon has been renamed to WPF. So what's the connection between Avalon, WPF, and DirectX (10 ) Are they sharing the same code, or one's just using another's API Thanks! You are right that Avalon was the codename for WPF (Windows Presentation Foundation). WPF use Direct3D 9 to render a vector based UI. WPF is not dropped as it is one of the three main parts of WinFX. As WPF supports 3D effects you can build 3D games with it but it supports only a limited subset of the functions th ...Show All
Visual Studio Tools for Office Add-In won't run with .net 2.0
Hi; I have an Add-In that runs fine under .net 1.1 w/ Word 2000/2002/2003. I just tried running it since installing VS 2005 & .net 2.0. It now tells me "AutoTag2003.dll is not a valid Office Add-in." I have tried this with both the version built under VS 2003/.net 1.1 and the version built under VS 2005/.net 2.0 - same problem with both. Any suggestions thanks - dave ps - I have the release version of VS 2005 installed. Hi; First off, thank you for answering this. A couple of questions though: 1) I just created a new VS 2005 Add-In and it works fine. I have not downloaded the fix yet. So why does my new Add-In work 2) I also can't ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Almost got it, just a little more...
OK so I just about got the dx device to run but got stuck, here's my code: vc++.net Device __gc * dxdev; // Create rendering device PresentParameters __gc * dxpp; dxdev = NULL; dxpp = new PresentParameters(); dxpp->SwapEffect = SwapEffect::Discard; dxpp->Windowed = true ; PresentParameters * dxapp __gc [] = {dxpp}; dxdev = new Device( 0 , DeviceType::Hardware, pb, createFlags::SoftwareVertexProcessing, dxapp); dxdev->RenderState->ShadeMode = ShadeMode::Gouraud; pb is a pointer to a picturebox control that I'm trying to create the device on. I get the following errors and more:(I don't get errors if I leave out the ...Show All
.NET Development Trouble getting value from xml file
Hi I am new to c# and xml but progressing nicely (I think) anyway I am reading in an xml file and then extracting information from a particular tag and rewriting it to a new file. I have almost got it but I am having a problem getting the value from the element and then writing it as an attribute to the new one. Code is while (reader.Read()) { if (reader.Name == "text" && reader.NodeType == XmlNodeType .Element) { writexml.WriteStartElement( "text" ); writexml.WriteAttributeString( "id" , "value from element here" ); // this bit writexml.WriteAttributeString( &qu ...Show All
Windows Forms Can Two UserControls Talk To Each Other?
Can two usercontrols hosted by a single html file can talk to each other Can someone post a sample Thanks in advance. Kiko It depends on what type of commutiocation do you want. The obvious things coming to my mind right away are: 1. Use windows messages, as these controls are windows and you can obtain their handlers and names if a ...Show All
Windows Forms Remote Server Is Unreachable - New Install
I downloaded the install for the source today. I ran the install. Verified that the database was created and that the tables had been poplulated. Also verified the virtual web was created in IIS. Database and client are on the local system. After the solution was rebuilt and the project was executed I am prompted for a username and password. I ...Show All
Visual C++ Pls help me out! I cannot build a very simple Hello World app.
I have been trying to build the following simple app for these two days. #include <iostream> using namespace std; int main() { cout << "Hello World!" << endl; return 0; } VS2005 C++ Express complains this way; Warning 2 warning C4512: 'std::basic_ostream<_E,_Tr>::sentry' : assignment operator could not be generated c:\program files\microsoft platform sdk\include\crt\ostream 45 Error 3 error LNK2019: unresolved external symbol "__declspec(dllimport) class std::basic_ostr ...Show All
.NET Development Byte array -> String encoding
Greetings and sorry for the likely newbie question. I also hope this is in the right forum! What's the most "pure" way to encode a Byte array into a String I've performed several searches but none have yielded much insight into my particular problem. I'm using C++, COM Interop into a VB6 application that uses a String return for socket class, but the actual issue is in the .NET native code. Using: Encoding::ASCII->GetString(byteArray, 0, iNumBytes) .. converts values >7 bits to a replacement value... and Encoding::UTF8->GetString(byteArray, 0, iNumBytes) .. truncates the higher value chars from the conversion totally.. ...Show All
Visual Studio Team System FxCop Error not pointing to the correct line in the source
Hi, When a custom rule is run on a test program we are seeing errors/warnings being thrown. But unfortunately when they are double clicked, the pointer is not going to the right line and instead points to the class declaration line. Not sure if I am missing some thing here. I am attaching one of my rules which checks if the length of the variable is <32 characters. When i click on the warning message in this the pointer is set to the line where the class is declared , instead of the variable declaration line. public override ProblemCollection Check( TypeNode type) { if (type.NodeType == NodeType .Class) { ...Show All
Visual Basic compilation
I have a solution made in VB.net beta 1, when try to compile it in beta 2 appears next message: "Error 64 The "ResolveAssemblyReference" task failed unexpectedly. System.IO.PathTooLongException: The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters. at System.IO.Path.NormalizePathFast(String path, Boolean fullCheck) at System.IO.Path.GetDirectoryName(String path) at Microsoft.Build.Tasks.SystemState.FileExists(String path) at Microsoft.Build.Tasks.AssemblyResoluti ...Show All
Visual Basic MDI Forms versus Usercontrols
I am building a Windows Forms application. It will use several forms, all starting from a 'home' form that provides summary info on the data elsewhere in the app. Basically, I don't want to make the thing an MDI Form, but I want it to behave like Outlook, for instance - where it appears that the same main form is being re-filled with relevant data/controls depending on what you want to achieve. Is there a best practice way of going about that Are UserControls the recommended approach to achieve this objective Regards Dipendra No , dipendra i think usercontrol is again a control which is place ...Show All
Visual Studio 2008 (Pre-release) WinFX Beta 2 - ScreenSpaceLines3D: where did they go?
As the subject states: WinFX Beta 2 - ScreenSpaceLines3D: where did they go I really like the speed of beta 2 but this is holding me back now... Thanks Are you serious ! If so, do you have any suggestions how I should continue with my 3D editor: http://blogs.infosupport.com//images/blogs_infosupport_com/ernow/151/o_Screenshot2.jpg As you can see I need a replacement. I thought about reflectoring the old CTP ScreenSpaceLines3D but soon found out they are dependent on some serious internal classes... Any suggestions Please ... I'll beg if I need to... ...Show All
