Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
R

Reuven Elliassi

@Reuven Elliassi
About
Posts
22
Topics
4
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • How to create DLL with vb.net to run with rundll32.exe
    R Reuven Elliassi

    I tried to follow that article, and I still can't run my dll from Rundll32. My code (VB.NET): ----------------- Public Class Class2 _ Public Sub MSG() MsgBox("Hello world !!!") End Sub End Class After I compiled the dll into c:\SampleDll.dll I use the command line: ExportDll c:\SampleDll.dll (Release mode) The result was: "Debug: False" in command line. After that I tried to run my dll in this way: RunDll32.exe c:\SampleDll.dll ,MSG The result is system message box saying: "error in c:\sampledll.dll Missing value: MSG" What am I missing, Plz. help me. Thanks, Reuven

    Visual Basic question tutorial csharp

  • How to create DLL with vb.net to run with rundll32.exe
    R Reuven Elliassi

    Hello everyone ! I built a DLL file using VB.NET 2005. How can I run its functions/subs with Windows RunDll32.exe command ? Another question: How do I retrieve function result if I call it with rundll32.exe ? For example: Rundll32.exe c:\MyDll.dll ,FuncName Thank you very much, And have a nice weekend ! Reuven

    Visual Basic question tutorial csharp

  • displaying checked itmes
    R Reuven Elliassi

    Do it with array of check boxes and run over it. if Chk(i).checked=true then msgbox (chk(i).text)

    Visual Basic help

  • Rot-13
    R Reuven Elliassi

    Try this: Dim S As String = RichTextBox.Text Dim I As Integer For I=0 To S2Rot13.Length - 1 If Asc(S(I)) >= Asc("a") AndAlso Asc(S(I)) <= Asc("z") Then S(I) = Chr(Asc(S(I)) - 32) ' TO UPPER CASE ElseIf Asc(S(I)) >= Asc("A") AndAlso Asc(S(I)) <= Asc("Z") Then S(I) = Chr(Asc(S(I)) + 32) ' to lower case End If Next I Instead of going on every letter of the ABC and the abc, we going on the string and check the Ascii code. This saving time if its string that smaller the 46 characters - instead of running 46 times every call we run as long as the string.

    Visual Basic html com

  • Rot-13
    R Reuven Elliassi

    Please define your need. Do you want to change A to Z, a to z, B to Y, b to y and so on for all the ABC ?

    Visual Basic html com

  • ImageCompression
    R Reuven Elliassi

    In the image box you have sub that saving file. Image.Save(...) Image compression is big topic that people trying to find ways to do it. The GIF, JPEG, PNG are common formats that developed specially for picture compression.

    Visual Basic

  • Reading to an array
    R Reuven Elliassi

    My mistake, I replaced Next I and Next J with end for... for i=0 to s2split.length-1 Ad=true for j=0 to 1 if s2split(i)=delim(j) then ad=false

    end for

    'replace with Next J if ad=true then tmp=tmp & s2split(i) else f(fpos)=tmp tmp="" fpos += 1 'New feature in VB.NET 2005 redim preserve f(fpos) 'preserve means that increasing f and saving the ' 'previous data end if

    end for

    'replace with Next I Reuven

    Visual Basic csharp data-structures help question

  • A DLL Question
    R Reuven Elliassi

    But, you can use the dll's you created in VB.NET in other Visual Studio Languages such C#,C++,Java.NET,ASP.NET. You also may use Dll's you made in the above language in the VB.NET. This sharing ability build on the CLR(Common Language Resource) of Microsoft that using a helf-native code compiled from the projects and in the CLR runtime compiling it to a native code according to the device CLR setup on (Movile, CE, Microwave, PC, etc.).

    Visual Basic com question

  • A DLL Question
    R Reuven Elliassi

    No as I know. In VB6 you can only create ActiveX/COM Dll's. In VB.NET you can create ActiveX/COM and .NET dll's.

    Visual Basic com question

  • error PRJ0015 in VS C++
    R Reuven Elliassi

    I found the way to fix the problem, and I've been started to learn VC++.NET. The solution was: 1. In Computer Management, select device manager. 2. In View select show hidden devices. 3. Then you need to locate The Null device in the list of Not plug-and-play device managers. 4. As you find it you double-click it and validate it working properly and running (in device manager tab -> device status). 5. In the registry go to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Null and validate Hexadecimal-Value Named "Start" exists and had the value 1 (in hex). If not - add it. 6. Restart your computer. Now is the big problem : ======================== According to step 4 above, the Null device may not working properly (like I did). To fix it you double-click it and choose to remove this device. Then you doing steps 5 and 6 above. After you restart the computer you need to run the Visual Studio Setup in repair mode - This will reinstall the Null device properly. Restart your computer, hold up your fingers and pray to god when it restarts ;P After you restart the computer you can Build and even Run your C++ programs in visual studio !!!

    C / C++ / MFC c++ help csharp visual-studio learning

  • How to build a simple calculator?
    R Reuven Elliassi

    Has Christian Graus said, if you can't do the basic research source codes may not help you. The idea of programming is to think about the algorithm you want to write and then think how to make it work in the easiest and quickly way you can. The speed is not only for saving project develop time yet also to increase the computer efficient. Processing resources is an expensive resource. There are few tips for you, when you want to write a computer program: 1. Define your needs and targets and the system the program will run over it (ex. windows XP, CE, Mobile Phone, etc.) 2. Multiply the targets into missions and sub-missions that will be easy to implement. 3. After you define the targets try to write algorithm (not in VB but in piece of paper) this will help you to rearrange your minds and way of work. you may also draw your tasks to think about visually. 4. The next step is to write it in VB and debugging. Good Luck ! Web site with source codes: http://www.planetsourcecode.com/ You may use such web sites (you may find a lot of them in one Google simple search) only for helping you with scripts you can't think about your own algorithm. those sites are not good for learning from the beginning.

    Hope I helped you

    &

    Visual Basic help csharp tutorial question

  • Someone know what is it NULL device ??
    R Reuven Elliassi

    Hi there, I program in Visual Studio 2005 .NET in C++ language. When I trying to build my project an error occur: "error: PRJ0015. The null device is missing from your system. we are unable to launch a build." anything I did don't help ... Please tell me what is the NULL device and I can I install it if it is missing. Thank you very much, Reuven

    System Admin csharp help question c++ visual-studio

  • Copying structures to string buffer and back
    R Reuven Elliassi

    I understand from your things that you transfer the string, so u want to translate a structure into a string. one way i think about is to convert the structure into bytes and then decode it back. for each structure you may need some signs, like: 123 mean start to transfer array. 221 mean start one array layer and 122 mean finish transfer the layer. etc.

    Visual Basic sysadmin question

  • Reading to an array
    R Reuven Elliassi

    Try this: dim S2Split As string = "A1/EXT "BK82 LB73 21233" 105 061018 1804" dim delim(1) as char delim(0)="/" delim(1)=" " dim f(0) as string dim I as integer dim J as short dim Tmp as string="" dim Ad as boolean dim fPos as integer =0 for i=0 to s2split.length-1 Ad=true for j=0 to 1 if s2split(i)=delim(j) then ad=false end for if ad=true then tmp=tmp & s2split(i) else f(fpos)=tmp tmp="" fpos += 1 'New feature in VB.NET 2005 ;) redim preserve f(fpos) 'preserve means that increasing f and saving the ' 'previous data end if end for

    Visual Basic csharp data-structures help question

  • How to build a simple calculator?
    R Reuven Elliassi

    I have some idea for you: A. For the numeric buttons write scrip like this: private sub btn1_click(..) txtT.text = txtT.text & "1 end sub ' etc. for all numeric buttons B. For command buttons ( + - * / etc. ) write this script: private sub plus_click(..) Tmp1 = cint(txtT.text) act="plus" txtT.text="" end sub C. For = button write: private sub ans_click(..) Tmp2 = cint(txtT.text) select case act case "plus" : txtT.text = tmp1+tmp2 case "minus" : txtT.text = tmp1-tmp2 .... end select end sub This code handle only one action per two numbers. If you wans to handle lot of actions, like windows calculator, you need to add a boolean trigger that will be True if one action had been chosen and when the user select another action it will do the action selected before, then put the result in Tmp1 and then reset the trigger to False. This process will continue until the user click the = button. I'll don't give the answer for this so quickly .. ;) I give you time to think about it.

    Visual Basic help csharp tutorial question

  • Error in building projects with Visual C++ .NET
    R Reuven Elliassi

    Hello, I have a problem that I tried to ask about in VS C++ form, in this site and one more site. I couldn't reach the answer and I've been told to try this form. I start to learn Visual C++ .NET. The first program I made (by a book)(MFC program) show me an error message: " The NULL device is missing from your system. We are unable to launch a build. Project: error PRJ0015 " This error occur when I want to build my project. I tried to restart my computer and to re-install VS 2005, but the error continue. I couldn't find a practical advice in MSDN. Please tell me what to do to fix this problem, Until now (for few years) I worked with Visual Basic .NET and it worked perfectly. I don't know what's go wrong.. Reuven

    Visual Studio c++ help csharp visual-studio

  • error PRJ0015 in VS C++
    R Reuven Elliassi

    Thank you very much for trying helping me ! (-: I'll ask in Visual Studio form. Reuven :-D

    C / C++ / MFC c++ help csharp visual-studio learning

  • error PRJ0015 in VS C++
    R Reuven Elliassi

    I'm using win XP Home Edition. In Local Users and Groups I don't have "Users" but in Users in the Control Panel I check, and my user have admin properties (There is only one user in the computer). The VS still don't building my projects ....

    C / C++ / MFC c++ help csharp visual-studio learning

  • Make a form refresh itself
    R Reuven Elliassi

    The code I just added is VB.NET code. In VB6 the parameters are same, but the event called "Timer" instead of "Tick". Private Sub Timer1_Timer Me.Refresh ' Refresh the form txtText1.Text = strA ' strA is a string that changed numID.Text = Num3 ' Num3 is an Integer ... End Sub

    Visual Basic question

  • Make a form refresh itself
    R Reuven Elliassi

    What you need to do is to create a new timer and set the .Interval to the number of few seconds you want multiply by 1000 (ex. 1000 = 1 sec). Timer1.Interval=3000 'will occur every 3 seconds After it you need to Enable the timer: Timer1.Enabled=True In the Timer1_Tick event: ========================= > To update graphic, use Me.Refresh. > To update controls, write the code that does it. Ex: Private Sub Timer1_Tick(...) Me.Refresh ' Refresh the form txtText1.Text = strA ' strA is a string that changed numID.Text = Num3 ' Num3 is an Integer ... End Sub

    Visual Basic question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups