Software Development Network Logo
  • VS Team System
  • Visual C++
  • SQL Server
  • Audio and Video
  • Visual FoxPro
  • Windows Vista
  • Game Technologies
  • Microsoft ISV
  • SharePoint Products
  • IE Development
  • .NET Development
  • Visual Basic
  • Windows Forms
  • Visual C#
  • Visual Studio

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

Steve Cronk

Member List

c1t1z3n0
Cla82
Hongqin
Lars Andreas Ek
Jesper Kleis Jensen
Kirill Osenkov - MSFT
Vasquez19
Sevugan
vhmau
jcsam
gabriel_333
Acco1953
sic0198
Rene Alexander
enric vives
kicks_joy_darkness
HariAdu
Ljhopkins
mitasid
SQLDataMonkey
Only Title

Steve Cronk's Q&A profile

  • Smart Device Development Update Control on Loading/Splash Screen in Separate Thread

    Hi all, I am working on an CFv2 app that needs to run a few processes before displaying the main form of the app. I want to have a loading screen with a progress bar and label that are updated to reflect where we are in the process of initializing the app. The loading screen is the first one the user sees, but FormMain is loading first and opens the loading screen in a separate thread while the main form continues processing. I currently have the app loading the loading screen while the rest of the app initializes and then it unloads and displays my main form as it should. I based my code off of a webcast by Maarten Struys (Creating a Windows Mobile Line of Business Application - episode 6 of 13, User Interface) and it is working fine. The ...Show All

  • SQL Server Errors in the metadata manager

    Hello, I'm trying to process a cube and i'm getting the following error message. I'm not working in Analysis Services Project 4, i created another project. I deleted Analysis Services Project 4 and every project i try to execute i get this error message. "Error 1 File system error: Error opening file; \\ \C:\Program Files\Microsoft SQL Server\MSSQL.2\OLAP\Data\Analysis Services Project4.0.db\TBLE~MC.0.cub.xml is not a disk file or file is not accessible. Errors in the metadata manager. An error occurred when loading the TBLE~MC cube, from the file, '\\ \C:\Program Files\Microsoft SQL Server\MSSQL.2\OLAP\Data\Analysis Services Project4.0.db\TBLE~MC.0.cub.xml'. File system error: The following error occurred while writing to the file ...Show All

  • Visual Studio Express Editions libcimtd.lib not found

    I have managed to compile an earlier WTL based program built under VC6 to compile with Express but I have got the following linker errors. LIBCMTD.lib(stdexcpt.obj) : error LNK2005: "public: __thiscall std::bad_cast::bad_cast(char const *)" ( 0bad_cast@std@@QAE@PBD@Z) already defined in TestConfig.obj LIBCMTD.lib(stdexcpt.obj) : error LNK2005: "public: __thiscall std::bad_cast::bad_cast(class std::bad_cast const &)" ( 0bad_cast@std@@QAE@ABV01@@Z) already defined in TestConfig.obj LIBCMTD.lib(stdexcpt.obj) : error LNK2005: "public: virtual __thiscall std::bad_cast::~bad_cast(void)" ( 1bad_cast@std@@UAE@XZ) already defined in TestConfig.obj LINK : fatal error LNK1104: cannot open file 'libcim ...Show All

  • SQL Server SQL Sever computer name

    I don't have any errors to share, but I have a question. What kind of problems (if any) would I encounter if the computer name where SQL Server 2000 or 2005 was installed included special characters An example would be FNB_(1). Sorry I gave you a bad example. I would still like to know if special characters in a computer name can affect SQL Server. How about FNB_1. Thank You. ...Show All

  • Windows Forms ClickOnce Workaround.

    hey guys, I need help from you guys. Just a few questions if these can be dealt with. 1. Is it possible to use click once without its backward compatibility I mean would want the newly published files(all files) overwrite the old ones. Would it be possible 2. Just wanna hear your ideas on this guys. For example, we have multiple servers running. Considering a multinational compay that has employees on North America, Asia and Europe. Each continent is being represented by a server. The purpose of which is that every time theres an update, those employees from europe would just connect to the server on europe and so is USA and Asia with their assigned servers respectively. Would it be possible for ClickOnce to deploy to multiple servers ...Show All

  • Visual Studio Incrementing Assembly Version and File Version

    When building projects using MSBuild I was expecting the build number to automatically increment each time. Is there a setting that will achieve this I have tried using an * in the Assembly version as stated in another message but this does not work. This area seems to be very obscure. Is anyone able to point me to some documentation Thanks David Do a search on the AssemblyInfo task. Its available on the MSBuild community website : http://msbuildtasks.com/ ...Show All

  • Windows Forms design time and compile time code

    Hello, I want to change the WinForm code generated by Visual Studio. From : this .gestLocDataSet = new GestionLocative. GestLocDataSet (); To my custom code: this .gestLocDataSet = new DataFactory.GestLocDataInstance ; It compiles and runs fine. But when I want to graphically edit the Form under VS, I ve got an error : The variable 'gestLocDataSet' is either undeclared or was never assigned. Hide Edit And I can' t edit my form. So to edit it tI must switch back to the old code I wanted to get rid of. Is there a way to both codes : VS code and my custom code for design time and compile time (using preprocessor directives ) Best regards ...Show All

  • SQL Server Erratic SMO Performance

    I have written a console app which uses SMO to automate the scripting and the creating of our database. For some strange reason the performance varies from blindingly fast to excruciatingly slow and I cannot seem to account for the cause. Can anyone tell me why For example, when scripting 100 tables, sometimes it will take 1.5 second to do all of them; sometimes it takes about 1.5 seconds to do each one! Some debugging uncovered the fact that it is the scripting of DROP statements that is the culprit. Scripting a CREATE statment seems to take between 1 and 70ms, whereas scripting a DROP statement *sometimes* takes the same amount of time, but *sometimes* it takes about 1400ms! I've tried varying all sorts of things but I can ...Show All

  • Windows Forms Ending Backgroundworker

    I'm just wondering if there are any specific functions that should be called from within the BackgroundWorker process in order to clean it up properly, or if you can just let it exit like a normal function No, you simply exit the DoWork event handler like any other function. The BackgroundWorker itself must be disposed but that's something you do from the thread that created the background worker in the first place, not from DoWork. If you added a BackgroundWorker to your form using the designer there is no need to dispose it, the generated code will take care of it. ...Show All

  • .NET Development Passing array to unmanaged code

    I have to pass an array of struct from C# to an unmanaged C++ DLL. The array is allocated by the caller with a fixed size and will be filled with data by the callee. The struct is defined in C++ as typedef struct tagFrmVariable { char Name ; double Value; } stFrmVariable; The C++ declaration of the callee is short WI NAPI FRM_GetFrmVariables( const short frmnr, stFrmVariable FAR* names); How must I declare the function and the struct in C# All I got until now were no returned data or access violations. Regards Reimund Not sure what the note represents, but try something like this struct stFrmVariable { [MarshalAs(UnmanagedType.ByValTStr, SizeC ...Show All

  • Windows Forms Making a custom tooltip (label) work correctly when form is moved

    Heres the deal, I have 32 inventory slots, which are actually panels, and when they are moused over, the Tooltip , which is an autosized label inside an autosized groupbox or panel, I wanted it so when one of these 32 slot panels are moused over, it will display the tooltip at that position, wherever you move the mouse, as long as its in that panel, when you leave the panel, the tooltip disapears, I got it to work perfectly by doing this, until a friend I am working with discovered that when the form is dragged, it will be off slightly, off a little more than what it is supposed to be at.... I figured that it was just a variable problem, since I was using the same ones, so I created a new variable, to limit down my options, but the prob ...Show All

  • .NET Development PageBreak Issue

    Hi, I am trying to create an excel xml using xslt and am having an issue with adding certain xml input components after the pagebreak. As an e.g ..here is my input file : <ROWSET> <ROW> <SECURITY_NAME>AUD/USD 07/19/2006 DEUTB-L</SECURITY_NAME> <TRANSACTION_TYPE>BUY FORWARDS</TRANSACTION_TYPE> <TRADE_DATE>06/14</TRADE_DATE> <SHARES>92400</SHARES> <COST>69348.97</COST> <PROCEEDS>68063.23</PROCEEDS> <GAIN_LOSS>-1285.74</GAIN_LOSS> <GPS_TXN_ID_CODE>200606150E1P0001</GPS_TXN_ID_CODE> <REPORT_NAME>CHCLM</REPORT_NAME> <ACCOUNT_CODE>250</ACCOUNT_CODE> <ACCOUNT_NAME>STRATEGIC GLOBAL FUND: P ...Show All

  • SQL Server Which one is better, XML-DML or normal update

    I want to save xml data with the following structure in the database <root> <static>...</static> <dynamic>...</dynamic> </root> Each subnode, static and dynamic, can contain a lot of child nodes. The static part will remain unchanged once created, but the dynamic part will change with each update. I have two solutions, 1. save everything in a single xml column, then use xml dml to update the dynamic part, but for each update, two actions are needed. update mytable set @xml.modify('delete ...') followed by update mytable set @xml.modify('insert...') 2. store static and dynamic into two separate columns, and use normal update statement to replace dynamic column as a whole for each update I would like to ...Show All

  • Visual C++ Native C++ : Report on what the optimizer has done?

    I've recently fixed a problem in my code where the optimizer "optimized out" a variable assignment, causing problems. The assignment happened in one module and any reading happens in other modules, my guess is the compiler thought the assignment was useless and discarded it. Is there any way to get a report on what the optimizer has found / changed after doing a compile/link If you can post the function that uses the the global variable where the assignment to it gets optimized away, then Microsoft can investigate this issue and come up with a fix in a future version. This is a necessary next step in getting closure on this issue. Also, if this is a local variable, then using the volatile m ...Show All

  • Visual Basic How can I get the default paper size of a printer

    How can I get the default paper size of a printer I don't know how to do this... Use PrinterSetting Or Else ... Please help me,thanks a lot!!!! There is no default paper size per se. There is a size that the printer is currently set to by a page setup dialog. Public Class Form1 Private WithEvents pdoc As New Printing.PrintDocument Private Sub Button1_Click( ByVal sender As System.Object, _ ByVal e As System.EventArgs) Handles Button1.Click MsgBox(pdoc.DefaultPageSettings.PaperSize.ToString) End Sub End Class ...Show All

©2008 Software Development Network