Software Development Network Logo
  • Microsoft ISV
  • SQL Server
  • Smart Device
  • VS Express Editions
  • VS Team System
  • Visual C#
  • Visual Basic
  • Architecture
  • Visual C++
  • Windows Vista
  • Visual J#
  • Windows Live
  • Windows Forms
  • Game Technologies
  • Visual Studio

Software Development Network >> Steve Schmidt's Q&A profile

Steve Schmidt

Member List

Frank_D
williamwon
kimo
Photodraw die hard
Rogerio Sobreira
Satan_chevalier
niroshanonline
johnyrere
Joku
Gil Kozlowski
Carvin
Deepesh Srivastava
sapo
Mr Techie
Supavan
Mobo_man
Michael Dye from Dyetech
Craig Cormier
JoeOnSunset
Sebbie85
Only Title

Steve Schmidt's Q&A profile

  • Windows Forms Manual serialization

    I've been playing around with several of the other serialization models in .Net and just stumbled across the serialization model of the designer. My goal is to serialize an active window along with all it's child controls and event connections and be able to resurrect it later. Is the ComponentModel serialization model the way to go about doing this To start understanding the model, I had a look at this simple code and couldn't understand why so many properties wanted to be serialized: Control c = new Control (); c.Dock = DockStyle .Right; PropertyDescriptorCollection props = TypeDescriptor .GetProperties(c); foreach ...Show All

  • Visual Studio set CustomBeforeMicrosoftCommonTargets=$(MyEnvVar)morepath/my.targets

    set CustomBeforeMicrosoftCommonTargets=$(MyEnvVar)my.targets Why does the above not work with CustomBeforeMicrosoftCommonTargets and MyEnvVar both defined in the environment I would think that msbuild would expand the above value of CustomBeforeMicrosoftCommonTargets just fine before using it, but it doesn't seem to work. Well, kinda. I'm saying don't do it with environment variables :) I'm not sure why it doesn't do what you expect, and I asked Jeff and he didn't know off the top of his head. We'll ask the rest of the team and see if we can figure out if this was an explicit design decision. Eit ...Show All

  • SQL Server exec in user-defined function

    Hi, How can I do dynamical exec to query in user-defined function At the end I need to return the result. Thank's Alexei You are not allowed. That's by design. Refer to BOL -> CREATE FUNCTION for more details. ...Show All

  • Visual C++ problem linking mfc app with VS 2005 RC

    I am trying to build an MFC application under VS 2005 RC. My DLLs call AFX_MANAGE_STATE. I get the following linker error: mfcs80d.lib(stdafx.obj) : error LNK2001: unresolved external symbol "int __cdecl _AfxInitManaged(void)" ( _AfxInitManaged@@YAHXZ) ../../tmgr/mgrcli/nt-i386/Debug/mgrcli.dll : fatal error LNK1120: 1 unresolved externals I dumped the symbols from all the libraries and DLL's and I can't find AfxInitManaged anywhere. In the afxstat_.h header file, I can see that AfxInitManaged() is called by the AFX_MANAGE_STATE macro. Any assistance in locating AfxInitManaged would be greatly appreciated. Thanks, -Steve ...Show All

  • Visual Studio Express Editions Trouble with C++ Express Install

    I have tried multiple times to instll the MSVE C++ package with no success.Everytime I try I get a MS .Net Framework 2.o installation errror, which in turn prevents the rest of the package from installing. I have/had none of the components that were not allowed to be on before I started. I even ran the vs_uninst_betas.exe to make sure I wasn't missing anything. I just do not know what to try next to get around this issue. I am running a Athlon Processor, >1GB RAM, Win 2000 SP4. Is it possible the because I have .Net Framework 1.1 installed, that it is causing a problem I look forward to getting some help. Thanks ...Show All

  • Visual Basic How to encrypt connectionstring (my.settings) in Winform (VB2005)

    I'd like to encrypt/decrypt a connectionstring stored in my.settings. How can this be done (in a Windows Application) (I only can find solutions regarding web applications, but I need one for a Windows Application) Thanks in advance Leo Leys You coud use the built in RSACryptoServiceProvider. If you are struggling with the coding side just hit me up on ictjason@hotmal.com (MSN) and I can give you some samples we use. I believe we stack base64 on top of the RSA in case of places being stored like the registry or settings file. ...Show All

  • Windows Forms DataBinding Radiobuttons..

    Hi yall,  Probably a simple q but i haven´t found any examples on this and its not for a lack of looking 8)  I have two RadioButtons in a panel, one for Yes and one for No. How do I bind these two to a boolean column in a dataset(Database)    Regards,  Fredric  I actually tried that.. but I don´t get it to&nbs ...Show All

  • SQL Server Multithreaded run of SSIS packages

    Is it safe to run several SSIS packages in parallel in a multithreaded application The package objects are not accessed from multiple threads: every thread is handling its own package (see below). void task_inside_thread() { System::String ^s = "..."; Microsoft::SqlServer::Dts::Runtime::Package p; p.LoadFromXML(s, nullptr); // callback handler MyEventsClass ^ eventsClass = gcnew MyEventsClass(); DTSExecResult result = p.Execute(nullptr, nullptr, eventsClass, nullptr, nullptr); return; } Is there any relevant documentation with respect to this issue Thanks, Bogdan I wor ...Show All

  • .NET Development Timeout Error: Updating DataSet

    In the following code, I cannot give an insertcommand in the adaptor. This is because, I insert rows to the dataset. And so, I cannot set a commandTimeout in the insertcommand of the data adaptor. However, how can I set a commandtimeout while updating the table             foreach (DataRow rw in DS_Source.Tables[0].Rows)             {                 rw3 = DS1.Tables[0].NewRow();               ...Show All

  • Windows Forms Passing value from another form to fill datagridview

    Here' what I am trying to achieve...I had a form(frmMain) having a Customer/Orders structure..The data are displaying properly using the dtagridview.I want to display the details by having another form(frmChoose) by which a user will choose for the name of the company he wishes to display details with.This chosen value will be passed to the control(lblCompany) of frmMain and supossedly display the order details based on that company chosen by the user...My ordeal now was how can I fill the datagridview using this setup.Had tried to pass this using the this code but apparently to no avail. Private Sub dgvPatients_CellClick(ByVal ...Show All

  • Visual C++ illegal call of non-static member function??? how to bybass it? is it a compiler bug?

    look at this code #pragma once   namespace test { using namespace System; using namespace System::ComponentModel; using namespace System::Collections; using namespace System::Windows::Forms; using namespace System::Data; using namespace System::Drawing; /// <summary> /// Summary for Form1 /// /// WARNING: If you change the name of this class, you will need to change the /// 'Resource File Name' property for the managed resource compiler tool /// associated with all .resx files this class depends on. Otherwise, /// the designers will not be able to interact properly with ...Show All

  • Visual J# Simple Echo Server

    I am using Visual J# 2005 Express Beta 2 to create a simple echo server. I have created the form and design and able am able to launch the program. I have created a RichTextbox to display the connections and 'echo's. The problem is when after starting the echo server by clicking on a button, the program stops responding. But the echo server is running in the background because I am able to connect to the echo server (localhost/port with telnet) and am able to "echo" messages. After the the telnet connection to the Echo Server is closed, the Echo server program starts responding and displays all the messages in the RichTex ...Show All

  • SQL Server Exception Handling with a script component.

    My situation is that I'm reading from a source script component with code similar to ( in CreateNewOutputRows ) Try With OutputBuffer .AddRow .Status = odbcReader.GetString(1) end with Catch err as exception With ErrorBuffer .AddRow .ErrorInfo = err.Message End With End Try In the event of an exception what I end up with is a row going to the OutputBuffer and a row going to the Errorbuffer - what I need is a single row going to ErrorBuffer and the row removed from the OutputBuffer in the event of an exception. I don't see any way of doing this in the buffer methods. Any i ...Show All

  • Visual Studio Tools for Office Asynchronous web service call behaves the same way.

    Using VST0 2005 with C#. I have an action pane that initiates a user request by creating a thread to query a web service. After the thread is created to do the work, the current (main) thread makes a progress bar visible and disables all action buttons and returns control to the excel application. The worker thread communicates with the main workbook via events. I have an event which signals the workbook that processing is done. At that time the workbook calls a method off of the action pane control to enable the buttons and make the progress bar invisible. While debugging, I get a message saying that I cannot perform the hiding of the progr ...Show All

  • Windows Forms How to avoid the application.config file?

    Since my applications is windows form based, I am posting here.In my application, developed in Vs2003, I am getting a application.config file. I do not want such a separate file. Can it be included while design time if so, How can i do that Here is the config file. ============= < xml version="1.0" encoding="utf-8" ><configuration> <appSettings> <!-- User application and configured property settings go here.--> <!-- Example: <add key="settingName" value="settingValue"/> --> <add key="menuWindow.MdiList" value="True" /> <add key="ToolBarSQLForm.AutoSize" value="True" /> <add key="ToolBar ...Show All

©2008 Software Development Network