Ripthorn's Q&A profile
Visual Basic It's slow!!!
Hello After I turn on my computer and when I launch first program (which programed by VB2005), it's take a long time to show main form. VB6 was faster. CPU speed: 2600 MHz Memory: 1024 MB Is there a solution for that Thanks & Regards What do you mean by 'long time' It's possible that, even though windows appears to have finished booting up, it hasn't - it's still loading and starting various services (e.g.SQLServer). Additionally, it may be that the .NET framework needs to load prior to your application loading. Did you try using a splash screen to see if t ...Show All
Visual Basic Declare and Call A Fortran DLL from VB 2005
If I have a Fortran DLL "CNDBC.dll" (compiled in version 6.6) with a subroutine: CNDBC_CURR(ICURMX,ICNDRMX) INTEGER*2 ICURMX INTEGER*2 ICNDRMX ... (i believe INTEGER*2 is 16 bits and i think SHORT is 16 bits in VB.net) How do I declare the subroutine and how do I make a call to this DLL Are there any other things i need to do to use this DLL thanks, gareth I don't recall if Fortan passes parameters byval or byref If it is byval the this should work: Declare Sub CNDBC_CURR Lib "CNDBC.dll" (ByVal ICURMX As Short, ByVal ICNDRMX As Short) If you are unsure about the datatype, you can also decl ...Show All
Visual C# renaming a file in c#
i use: fiFileInfo.CopyTo(Path.ChangeExtension(fiFileInfo. FullName + fiFileInfo.Extension, ".enc"), false); to rename a file (eg: ***.ppt -> ***.ppt.enc). if the file is really big (400mb), this take 6-7 minutes. is there a better way to rename files regards meeeeeeeeeep File.Move will rename a file for you. Not sure how much faster it is than the above. There's no File.Rename, to my surprise. ...Show All
Visual C# MaskedTextBox underline
Why is my MaskedTextBox showing an underline I do not have the underline property set. The mask is set to "000". ...Show All
Windows Forms Internet zone
Hi, I have problems with applications deployed using ClickOnce from the Internet zone. I have created a sample application (just a form with a button that makes an illegal operation in this zone - looks if a file exists). http://www.valil.com/TestExpress/TestExpress.zip I have set the zone to Internet and I have deployed it on the web server. When I try to run it, I get the message "Application has been blocked ..." (the message you get when you try to run a full trust application). I must mention that my website has the problem from this thread ("Problems with MIME settings at the hosting provider") so the deployment manifest has the ext ...Show All
Windows Forms deploy smart client that uses caching app block
background --------- I am writing a smart client application in c# 2.0 . I have a winform that communicates with my server via web service and sends business objects (for example - BL.Product) back and forth. I am planning to have hundreds of clients. When a client is not connected to the internet (and to my server) i cache the BL objects into the hard-drive (isolated storage) using the caching application block of the enterprise library. I use clickonce to deploy new versions of my app. components ---------- on the client machine - GUI.exe ClientDAL.dll BL.dll on the server machine - WebService (dll) ServerDAL.dll ...Show All
Visual Basic DataGrid Check Box Cell CheckState
I am trying to use the CheckBox Cell in a Datagrid View in 2005. The problem is I a am having trouble determining wether the cell is checked is not. My plan is to allow the user to check / uncheck the rows and then loop through them and update the SQL backend accordingly. But i can seem to find a way to check wether the cell is checked or not. At the moment I update the database on the Cell Click event and do a check on a field in the dataset to the inverse of what is there i.e. If the check box is ticked check the Value of the cell in the Row and reverse it. this is for a simple Y / N Field and then refill the data grid this is a bi ...Show All
Visual C++ Help Required, Getting started on particular C++ App
Hi, I am a junior Developer, and require some assitance I am developing a small app in Visual C++ , which will require to parse through a XML file , display certain tags/groups on screen in H ierarchical view, with the option of editing particular aspects of tags. Just to get started on this, I am wondering which Control I should use which would be best for this, I was thinking of using Tree View, but I am not familiar with the controls availble Any Help would be appreciated Thankss I can't really confirm since it depends on your application as well as ...Show All
Windows Forms How do you move from one child form to the other?
Need to know how to move from one child form to the other. form1 = parent form , form2 is open and form3 is open need to focus is now at the form2 and need to go to the form3. Also would like to reference form2 drop down list from form3. Any idea's. thanks Try to declare three friend form variables in a modul ...Show All
Visual Studio Express Editions Progress database and VB
I'm totally new to everything, which has something to do with vb 2005 express edition coding, databases and so on.... but anyway I got myself interested in vb2005 express and I followed the video lessons. There I found some interesting things... databases for example, and how to access data from SQL Server. At work we have Progress databases. Now at last to my question: How can I get data out of our Progress databases, using vb2005 Or at least, where can I find some information of this matter Accessing a database typically requires a data access driver/provider of some sort. It ...Show All
Visual Studio Team System "object reference" error on project load
I'm having a problem very similar to the one posted by Daniel Pratt a few days ago. Steps: --Created an sql2k project. --Imported schema. --Fixed about 270 double-quote-to-single-quote errors. --Upon having a clean project, save and close. --Reopening takes a long, long time (probably around 15-20 minutes), and then i get the object reference error. Project has a fair number of objects; about 1000 tables and around 3000 procs. I also tried copying all the contents of the "Schema Objects" folder in my project folder, creating a new project, importing schema again, and then overwriting the Sche ...Show All
Software Development for Windows Vista Registry Access in Managed Form Application
Hi, I'm developing a C# .Net 2.0 application that requires read/write access to the registry. I'm using the following code: using Microsoft.Win32; ... regkey = Registry.CurrentUser.OpenSubKey(@"SOFTWARE", true); regkey = regkey.CreateSubKey("MyCompany"); On Vista the new permissions lock down, I get the registry access denied exception. How do I elevate the permissions level so that the user at least is prompted to allow access Thanks, Mike Well I've worked out that I need a manifest file to let Vista know that the application requires elevated permission ...Show All
Software Development for Windows Vista Replicating State Machine Workflows
I am wondering if it is possible to replicate n number of state machine workflows from within the state initialization activity. Thanks I don't think that solution would work, as the activity would be an InvokeWorkflow, not the child state machine workflow. From within the workflow, you can use 'this.WorkflowInstanceId' or from an InvokedWorkflow, you can use 'invokedWorkflowActivity.InstanceId'. Arjun ...Show All
Visual C++ Reverse Digits in C++
Dear C++ experts, I need help with this program: Write a complete C++ program that reverses the digits of a given positive integer. For example if the user enters a positive number 123456 , your program would print 654321. Kind Regards, Ahmed Mahdy Sorry my bad #include <iostream> using namespace std; void ret_str( char * s) { if (*s != '\0' ) ret_str(s+1); cout<<*(s); } int main() { cout << "Please write your string : " ; //255 is an arbitrary number it represents the length of your input s ...Show All
Visual C++ registry enumeration
i am trying to launch a file in its default application and for that i am trying to find the default application for any specified file. i tried to use the extension of the file to get the respective default application name from the registry. but as i tried to do that it gave me ERROR_ACCESS_DENIED. My code is: LONG retcode = RegOpenKeyEx(HKEY_CLASSES_ROOT,L ".jpg\\OpenWithList" , 0, KEY_QUERY_VALUE, ®key); retcode = RegEnumKey(regkey,0, (LPWSTR)&Buffer, Size); i am trying to fetch the default application for .jpg. What should i do and is there a better way to find it ...Show All
