|
Hi everyone,
I have a project in VC++ ,it is ClassLibrary project and it has a function that return jbyte *.
I would like to call this function in VB project ,how can I convert jbyte * to byte array ?
I would appreciated for any help .
If there is any document,sampe code or link for "type conversion between VC++ and VB.net "please inform me.
yours sincerely,
Orchid
|
|
|
|
|
What on earth is a jbyte ?
|
|
|
|
|
Hello,
I am a newbie.
I have read source code of many programs.
They contain some application forms.
I can't know which function is created for user interface or change file time.
I would like to see the easy code to change file time.(Any language C/C++ , Java , Or VB)
I would like to change file attribute
- created time
- last modified time
- last access time
Any one can help me?
Thank you.
..................
|
|
|
|
|
Have a look at the Ssytem.IO.FileInfo class.
---
b { font-weight: normal; }
|
|
|
|
|
Hey guys
I need a simple code :
if i want the cursor to be on : X=20, y =30 the cursor goes to this location (x,y= varible pixles)
how can be this done?
Regards
Ramy
|
|
|
|
|
This should work:
Cursor.Position = New Point(Cursor.Position.X = 20, Cursor.Position.Y = 30)
|
|
|
|
|
When i apply this instruction ,it returns always x=0 and y=0 for cursor position
Cursor.Position = New Point(Cursor.Position.X = 20, Cursor.Position.Y = 30) ,
the error given in cursor position is:qualifying expression will not be evaluated
Regards
Ramy
|
|
|
|
|
Are you using VB6 or VB 2005?
|
|
|
|
|
using VB.net 2005
the matter is to i want to move the cursor to a place that i want....
ex: x=20 y=40
and the next step that i want to do :
is to change the color of the pixels there (means X=20,21,...30 and Y=40,41....)
thx
Regards
Ramy
|
|
|
|
|
Hi
on the design mode I can make the program with multi language, by languange properties ,
but how I can allow the user to change the language on Run mode ??
so thanks to any one try to help me >>
jooooo
|
|
|
|
|
There's no kind programmer here
any body response me
jooooo
|
|
|
|
|
as no one reply I try to answer
You change the current language by changing culture
no exact but take a try
System.Threading.Thread.Currentculture.....("here language name")
Sorry if it doesn't work. By the way I am also trying to search on it.
Take care
Syed Shahid Hussain
|
|
|
|
|
|
Hi everyone,
I created a project in VC++ (Class Library project in visual studio 2005) and I would like to use it in VB .
I defined 2 functions in classlibrary that one of them uses simple data type such as int,bool,.. in input and return value and other one uses data type such as char * .
When I use simple data type ,there is not any problem and I can call the function in vb successfully but when I use another data type such as (char * ,..)I can not call it and even I can not see the function in vb.
My question is about data type conversion between VC++ and VB.
My code is same as below :
//==============================
MyClassLibrary.h
#pragma once
using namespace System;
namespace MyClassLibrary{
public ref class InitCard
{
public :
bool VerifyPin(char *) ; //I can not see this function in VB
bool SetCardAccessKey(int); //I can see and use this function in VB successfully .
};
}
//======================My VB code is same as below :
Imports MyClassLibrary
Dim Jvm_offcard As New MyClassLibrary.InitCard
Jvm_offcard.SetCardAccessKey(2);
//Jvm_offcard.VerifyPin("1234") //there is an error on this line
I would like to know how can I use data type such as (char *,byte array ,string) between VC++ and VB code.
I would appreciate for any help .
Yours sincerely,
Orchid
|
|
|
|
|
You need to use the .NET String type rather than char* in your C++. I've not done any C++/CLI but don't you need to have something like
bool VerifyPin(String ^) ;
Kevin
|
|
|
|
|
Dear Kevin,
Thanks alot for your help ,My problem is solved .
Thank you very very ...much.
yours sincerely ,
Orchid
|
|
|
|
|
Dear Kevin,
I used String ^ instead of char * and it is ok .I have another question, how can I use byte array in VB?
I mean I have a function in VC++ class library that return byte *,do you know how can I use its return value in VB ,because I have a problem same as char * .when I want to call this function in VB I can not see it .
I would appreciate for your reply.
if you have any document,sample code or link about ".Net Byte array type" please inform me.
yours sincerely ,
Orchid.
|
|
|
|
|
Well, the String thing was a lucky guess based on fragments of artciles I've read about C++/CLI. I don't know offhand how to pass a byte array. Presumably you need to find out the syntax for having an array of managed types.
Kevin
|
|
|
|
|
|
Dear Kevin,
Thanks a lot for your help,
The article was very useful for me and with your help my problem is solved completely .I appreciate for your attention and help.
thank you very much.
yours sincerely ,
Orchid.
|
|
|
|
|
Your welcome.
Kevin
|
|
|
|
|
I want to create a simple custom control inherited from textbox. This control can update the textbox value in a timely manner let say every 30 seconds. The value is is obtained from a variable in the form where this control is dropped. example:
A variable XYZ exist in the form. The control when dropped in the form is also named XYZ. At runtime the control XYZ should determin it name and subsequently take the value of variable XYZ and set the textbox.text property equal to it.
|
|
|
|
|
Hi All
Please Help Me
I have use VB 6.0
I want to attached scanner from user interface and save image.
please help me
|
|
|
|
|
You need to buy a control that offers you a TWAIN interface.
|
|
|
|
|
Hi All
I have written a program in vb.net 2005 for generating dynamic reports from SQLserver 2000 , the report generates successfuly but when it goes for printing with a network printer that I specify it programaticaly I get this error :
Erorr in file E:/DOCUMEN~1/admin/LOCAL~1/Temp/temp_4fc557_33455ed_{asd33dh3_dsd}.rpt
:unable to connect : incorrect logon parametrs
The code that I using for printing is :
Dim
m AsNew A4Bill
m.PrintOptions.PrinterName = "\\Arash\Microsoft Office Document Image Writer"
Try
m.PrintToPrinter(1, False, 0, 1)
Catch ex As Exception
message.Text = ex.Message
EndTry
Thanks for your Help
Arash Rajaei
|
|
|
|