tpkx's Q&A profile
Visual FoxPro [noob questions] Arrays..
Aaaaaaaaaaaaaaaarrrrgggghhhhhgadsfhasdjhf 1. Is foxpro incapable of returning an array from a function by using the return statement 2. Does foxpro have a function that merges 2 arrays 3. How do you pass an array as an argument to a function in a class when the array is a class variable For example: define class test as Custom dimension Arr(1) procedure asdf(tmpArray, tmpString) * do stuff endproc .. etc etc How do I call the procedure asdf (from some other procedure in this class) using Arr as a ...Show All
Visual Studio Express Editions default
ok. what i want to know is how to make a button the default button. so when i hit enter it will do the function it's been set. for example a web browser. i type in where i want it to go and hit enter, and it goes to where i've typed. ok don't get confused i'm not trying to make a web browser navigate. what i'm trying to achieve is the hit enter bit. i can do it in vb 6.0 but i'm havin trouble which vb 2005.net can anyone tell me how to do it The form has an acceptbutton property. That is the button that is clicked when the enter key is pressed http://msdn2.microsoft.com/en-us/library/system.windows.forms.form.acceptbutton.aspx ...Show All
Visual C++ _beginthread() issues...
I am having trouble sending parameters to a thread via the _beginthread(void(*)(void*),unsigned int,void *); call. I just want to send a single integer... this is how I do it now: void main(){ int x; _beginthread(threadMain,NULL,x); } void threadMain(void* x){ //blah }; I have tried every form of casting that I can think of, in both the parameter sent and the parameter received. Hi, I think if you try like below, it should work out for you. void main(){ int x=100; _beginthread(threadMain,NULL,&x); } void threadMain( void * x) { int y = *( ...Show All
Visual C# Switching off computer using C#
Is it possible to switch off computer using c# I know that it is possible when using c/c++. There is a method called exitWindows or exitWindowsEx, but I can't find it in Visual C# Express Edition 2005 The .NET framework must by definition call Win32 functions, but it does not expose all the functions that exist. pInvoke fills this gap. The following is a C# class that deals with all the traps involved in shuting down the PC. using System; using System.Runtime.InteropServices; namespace Shutdown { /// <summary> /// Summary description for Shutdown. /// </s ...Show All
SQL Server Format DateTime attribute in AS 2005
Hi, I have an attribute a Time dimension which is of the datetime datatype. In the browser and in other tools, the displayed members are formatted like this: dd-mm-yyyy hh:mm:ss I want to change this format. How is this done The format property of the attribute in the dimension editor seems to have no effect... I tried "mm/dd/yyyy" and without quotes. Thnx... Jeroen. Hi Jeroen, If you customize the date format to what you want in the regional settings in the control panel, and refresh the browser, you will get the format you wanted. I've tried this out and it works. Yan ...Show All
Smart Device Development Email through GPRS
Hi, i am doing an application on HP iPAQ and trying to send an email through GPRS When i compile my code and run the exe file from my pc, the email is sent and everything works ok, but when i try to deploy my application on the iPAQ the following error is displayed: An unhandled exception of type 'System.TypeLoadException' occurred in myApp.exe Additional information: Could not load type System.Security.IStackWalk from assembly mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=969DB8053D3322AC When i copy the exe file on the iPAQ and run the exe from the iPAQ with the same code the following error is then displayed: This ...Show All
Visual Studio 2008 (Pre-release) Binding a WrapPanel's ItemWidth to a Grid's Column width ...
I'm trying to use a WrapPanel as the ItemsHost for a ListBox. This works fine, but I'd like to bind the width of the WrapPanel's items (ItemWidth) to the width of a column in a Grid that contains the WrapPanel. I'm not sure if this is possible, or if I've gotten the data binding syntax incorrect. It's not working for me. Can anyone help Here's the XAML: < ControlTemplate x:Key = " ListBoxControlTemplate " TargetType = " {x:Type ListBox} " > < Border CornerRadius = " 2 " BorderBrush = " Gray " BorderThickness = " 1 " > < Grid > < Grid.ColumnDefinitio ...Show All
Windows Forms execute a common file in vb2005
Hello again, i want to execute a common file from vb2005. Example: (i got a listview that contains the name of the file, and a label with the path of it) listview1.selecteditems(0).text="common.txt" label1.text = "C:\" so how can i execute "C:\common.txt" with the default program (notepad.exe) I want to use this with any kind of file (eg.: .jpg, .avi, ... etc...) Any idea thnx a lot   ...Show All
Visual Studio Express Editions TAPI relavant Component in .NET?
Hi, I was used TAPI to developed IVR system using VB. What component I'll use in .NET since is TAPI dll is not support any more in this platform. Please help me to setup IVR system using .NET It looks as though you can still use TAPI with VB.NET http://www.codeproject.com/useritems/CShart_TAPI_3x.asp http://www.gotdotnet.com/Community/UserSamples/Details.aspx SampleGuid=4bc31771-594a-460e-8c9d-a584b2c47c2d Perhaps you can elaborate on you questions as to which platform you are talking about that you are under the impression TAPI is not supported on. ...Show All
Visual Studio Express Editions Export crystal report v8.5 using VB 2005
Hi, I'm trying to open a crystal report v8.5 using VB 2005.But, I didn't kenow how can I start with this issue I try what I did before with VB6 but It didn't work,Can you help in this issue BR, M.hegazy Hi, Can you give us more details of the error, so that we can help you out better. Thank you, Bhanu. ...Show All
Visual C# Image Transfer via Remoting
How to transfer image using .Net Remoting from Server application to Client in C#. Just create a remoting object as you normally would and you can either return or pass as a parameter either a Bitmap or a Image object. Someting like: MyRemoteObject.TransferImage((Bitmap)object); where the declaratino of the method is: public bool TransferImage(Bitmap bmp) You can use this sample as a base for getting a remoting infrastructure: How to create a remote server by using Microsoft Visual C# .NET http://support.microsoft.com/default.aspx scid=kb;en-us;307445 ...Show All
Visual C++ unresolved tokens when migrating from 2003 to 2005
Hello all, I am writing a utility to programmatically zip and unzip files. I am using Daniel Godson's C++ wrapper for the Minizip app by Gilles Vollant (which in turn makes use of code written by Jean-loup Gailly and Mark Adler). See http://www.codeproject.com/cpp/unzip.asp . Godson's code, as far as I can tell, was written in VS2003, whereas I'm working in VS2005 - beta2. After dealing with some unicode issues and some deprecated functions, my project finally builds into.... ....a giant mess of unresolved token errors. 31 of them, to be exact. My build log look ...Show All
Windows Forms How to get IIS's local path by c#?
Hi all: I want to get localmachine or remote machine's local path of IIS, such as "C:\Inetpub\wwwroot". How to implement it by c# Thanks alot! Use the Microsoft.Win32.Registry class to read the PathWWWRoot value at HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\InetStp. This will only work for the local machine. I doubt there is a way to get this programmatically for a remote machine. ...Show All
Visual FoxPro Sql Server and VFP
Is there an accpect or general way to convert - using odbc sql sever date fields (which are like timedate ) to vfp fields type date bob Lee I was more looking for a way to get back a local vfp cursor as a DATE type field in the first place without converting it.. but thanks . Bob Lee ...Show All
SQL Server Converting text data to ntext data
Hi all, My organization have a web-based application and needs it to support multilingual so we will be adapting our app to use unicode. However, one of our problems is to convert existing data from text to ntext. I couldn't find anything that document this. What is the best way to do that I would like to be able to migrate the data from an existing text column to another ntext column in the table. I brief you about my system, I used List manager system to store the messages and distribute to all members. Right now,by design the Lyris system keep the message in the text field which mean it 's not support multilanguage directly because of un ...Show All
