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

Software Development Network >> cosminb's Q&A profile

cosminb

Member List

pcompassion
xna3der
samantha chandrasekar
z3n
dumian
rhodesia
Nils VG
Sweeps78
Andy Jarvis
*Rick*
Matrixchyah
Klaus Prückl
Matthew McNally
milkshake
The VB
jitter123456
Alanu
IIM
UlliDK
SwedishMagoo
Only Title

cosminb's Q&A profile

  • Software Development for Windows Vista Still confused - installing machine wide data for read/write all users

    Okay guys, Where in the world am I suppose to put our shared machine wide database on VISTA so that all users can read/write to it It is just a simple Access 2000 file. It shouldn't be this hard to put a file on a computer so all users can write to it. Thats all we want to do. I posted this about 3 or 4 days ago in another forum and a user said that we should be putting the database in CSIDL_COMMON_APPDATA if we want to share it with all users. So I followed these instructions and implemented the SHGetFolderPath API and I utilized this location (which maps to c:\programdata on VISTA) to store our database in c:\programdata\[ourApplicationName] Even though my data is written to this location each user that accesses the file r ...Show All

  • Visual C++ register a com dll automatically.

    I have a COM dll and I want to register it automatically, I hope that one expert can give me a sample program of how to register a com dll dynamically in the vc program. I appreciate your help. Jakein2006 wrote: I have a COM dll and I want to register it automatically, I hope that one expert can give me a sample program of how to register a com dll dynamically in the vc program. A COM dll needs to be registered before it runs. If you are trying to register the dll from the application that calls it you can use the ShellExecute function. e.g. ShellExecute(NULL, NULL, "regsvr32 dllName.dll", NULL, NULL, SW_HIDE); In a normal deployment scenario the setup program registers the dll ...Show All

  • Visual C# missing app.config in vs2005

    Hi, I'm wondering how can i open (or create) an appconfig in VS2005. As I remember, in VS2003 it was created with the project, but in VS 2005 it is not (or somehow it is hidden). How can I create/access it (Or there is a new way in VS2005 to manage some settings ) Thanks Hi, with VS2005, you can manage your settings through Project properties - when selected through menu or otherwise, select Settings tab and you'll probably see a "This project does not contain a default settings file. Click here to create one." link. Click that and you'll be able to define your application's settings, which will be available through your application; you'll be able to load them, save them and bind control's p ...Show All

  • Visual Studio Express Editions Customising DateTimePicker

    I would like to customise the datetimepicker to show the date and time as: Mon, 24 July 2006 - 1.35pm, or something similar. Could someone please tell me how to code this control. Much appreciated by newbie I believe you can, take a look at this: http://msdn.microsoft.com/library/default.asp url=/library/en-us/vbcon/html/vbcondisplayingdateincustomformat.asp http://msdn.microsoft.com/library/default.asp url=/library/en-us/cpref/html/frlrfSystemWindowsFormsDateTimePickerClassCustomFormatTopic.asp so, in your case, "Mon, 24 July 2006 - 1.35pm" would be: Me.theDateTimePicker.Format = DateTimePickerFormat.Custom Me.theDateTimePicker.CustomFormat = "ddd, dd  MMM yyyy - hh.mmtt"   ...Show All

  • Visual C++ relinking RTM libraries for VS2005SP1

    Hello.I cannot relinking CRT libraries (msvcr80.dll, ...) due to unhandld.obj. This obj is not generated during compiling. I used original makefile from VS2005 SP1. Can you help me. Thanks. confirmed - currently asking VC team about this - I'll let you know what I find out. In the mean time please file a bug at connect.microsoft.com ...Show All

  • Visual C# System Tray Icon with background processes

    Hello Background I'm writing a system service style application. It consists of a NotifyIcon in the sys'tray that has several functions that are called from the ContextMenu / Event s. When the app' starts it should do nothing but sit there until the 'Start Sending' MenuItem 's Event is called. This event starts a new Thread which checks a file repository between Thread.Sleep(15*60*1000) . Problem To cut to the chase, the application is maxing out the cpu usage during a loop: while ( this .Created){ Application.DoEvents();} How to I prevent this excesive usage Do I need to access the System Idle Process This usage doesn't actually halt the server or even slow it down it just capitalizes the usage as there is no ot ...Show All

  • SQL Server Finding Procedure calling a trigger

    Is there a way for me to find out the Procedure name that caused the current trigger to be fired. I have UDPATE statements in various SPs that all fire the same trigger. When I am in the trigger I would like to perform different actions based on which SP caused the trigger to fire. I hope there is a way to accomplish this. Thanks, Amir You can use SET CONTEXT_INFO in SQL Server 2000/2005 to initialize session level data with the SP name. You can then retrieve it from the trigger code to check the SP that issued the DML that fired the trigger. Search in this newsgroup for CONTEXT_INFO and you will find several posts from me. ...Show All

  • Visual Studio 2008 (Pre-release) Z-order

    Is z-order (relative to canvas) something I should set explicitly in this version of FW as well The inquery is why z-order to setted itself by object or it's parent. E.g. while adding childs into some element I'd expect that z-order of those childs will update accoring it's position in child's array ...Show All

  • Visual Studio Express Editions Installation error

    I have tried to instal C# express 2005 online and from cd and it doesn't work. It has to shut down the installation beause of the error the exact error message you recieve. EventType : visualstudio8setup P1 : 10861 P2 : 8.0.50727.42_rtm_x86_ixp P3 : msi P4 : inst P5 : f P6 : ca_beginhelptransaction.3643236f_fc70_11d3_a5 P7 : - P8 : 1603 P9 : - P10 : - C:\DOCUME~1\Robert\LOCALS~1\Temp\WLF23.tmp C:\DOCUME~1\Robert\LOCALS~1\Temp\SDB24.tmp C:\DOCUME~1\Robert\LOCALS~1\Temp\VSW1\VSSWMSISummary.txt C:\DOCUME~1\Robert\LOCALS~1\Temp\VSW1\VSSWMSIInstallTime.txt C:\DOCUME~1\Robert\LOCALS~1\Temp\VSW1\VSSWMSIFailInfo.txt <NoFiles> which OS are you using Windows xp service pack 2 h ...Show All

  • .NET Development Dedicated thread calls GUI thread directly

    In an app I'm debugging I've come across some code in which a method called from a dedicated thread directly accesses a property on a GUI control, created on the main thread. It has, so far, not caused any problems but I am told that this is bad. Before I fix it, could someone provide, or point me in the direction of, an explanation of why this is bad, and what kind of problems it can cause. Also, is there some kind of profiling tool I can use to monitor method calls across the threads and make sure that what I think is happening is actually happening Any help appreciated. Andrew. Yes, this is bad. By design, the Windows message loop and dispatcher is not thread safe. You could invalidate a ...Show All

  • Visual Studio 2008 (Pre-release) Designing TabItems

    When designing tab items it will not let me move the controls with the mouse to position them exactly where i want them. I have mess with the margin setting and tweak it manually which is very tedious. Is there a way around this Yes. Unfortunately that's a well known and infamous limitation in the current Cider CTP. Cider doesn't yet support custom controls in preview mode, although I understand that it will be addressed in the first Visual Studio Orcas CTP, expected in "early 1997" (according to an MSFT poster). You might want to try using the Expression Blend beta ( http://www.microsoft.com/products/expression/en/Expression-Blend/default.mspx  in conjuction with Orcas. Expression Blend does ...Show All

  • .NET Development How to generate ADODB.dll from cdosys.dll

    I need to make MHTML from HTML. I searched google and found following link http://wiki.ittoolbox.com/index.php/HOWTO:Create_HTML_Multipart/Related_Email_in_.Net_Framework_1.0_or_.Net_Framework_1.1 sp=CM#Introduction which converts HTML to MHTML. It uses following code to generate ADODB.dll and CDO.dll C:\{path to project}\lib>tlbimp %systemroot%\system32\cdosys.dll /namespace:CDO But,When I am run the above command, I get only CDO.dll and no ADODB.dll is generated in the lib folder. I am using VS2003 and Windows 2000 . rticle clearly mentions to use ADODB.dll generated from above command. When I am using ADODB.dll shipped with .net framework, I get exception when html to be converted to MHTML gets big.Please provide some h ...Show All

  • Visual C++ Conversions string <-> int in C

    Hi everyone! Does anyone know how to convert a string to an int and vice versa in C (not C++, only in C) I need it because I have to create txt files incrementally, whose names are 1.txt, 2.txt, ...etc. Thank you very much! Yes, it works, but the program crashes if I try to put the file into a folder (that already exists), like that char filename[ 10 ]; int number = 190 ; sprintf(filename, "output//%i.txt" , number); pFile = fopen (filename, "w" ); // pFile is a FILE* for (i= 0 ; i< 2 ; i++) { for (j= 0 ; j< 3 ; j++) { fprintf(pFile, "%f " ,*(ARRAY+ 3 *i+j)); // ARRAY is a matrix pointer } } fclose(pFile); It gives no problem if the filename is for in ...Show All

  • Visual Basic can I run command line parameters through VB code without creating and calling a batch file?

    I need to run the following arguments on the command line: cd c:\Program files\Microsoft SQL Server\90\Shared sac out server1.out -DE This will export the database engine settings from SQL server to a file called server1.out I know how to do this using a batch file and then calling it from VB using the shell command but I need to do it directly from VB instead, is this possible Yes: Dim CmdArg() As String = Environment.GetCommandLineArgs Parsing is already done for you in the substrings of CmdArg() ...Show All

  • SQL Server Proble moving database to server

    Hi, I'm developing a website using the new authentication system from asp.net 2.0 and when I try to copy the database to my server and I try to add data to it, it gives me a read-only error. I've tried several ways, but I can't seem to find the solution. It works well in my computer but if I move it to the server it just doesn't work. Is there anything I need to do I have all the permissions needed in IIS. Thanks, Bruno Silva You can find out more about moving or copying databases here: http://www.microsoft.com/technet/prodtechnol/sql/2000/maintain/sqlbackuprest.mspx Note that there is a link at the bottom if you're using SQL Server 2005. Buck Woody ...Show All

©2008 Software Development Network