Pointer - Rewrite A C++ Library

Jan 4, 2012

I'm trying to rewrite a C++ library. But I have an issue. I'm not extremely pointer-savvy. In the C++ class there is a std::vector that holds unsigned int pointers (vector<unsigned int*>), and the int pointer just points to an array of integer data.

Here is the C++ code I'm a bit unsure about:

unsigned int* relocation = m_relocations.front();
m_relocations.pop();
unsigned int* reloc = *(unsigned int **)relocation;

View 3 Replies


ADVERTISEMENT

VS 2008 Pointer - Error32'System.Reflection.Pointer' Has No Type Parameters And So Cannot Have Type Arguments

Jul 15, 2010

I have an open source project I converted to vb.net. I solved all the errors, except for one. This is the C# line

[Code]....

View 4 Replies

C++ - Declare Pointer To Pointer In COM/ATL?

Dec 29, 2010

How can I declare pointer to pointer in ATL. Actually I have a handle which I want to pass by address to function. As shown below

STDMETHODIMP Function(HANDLE* hHC) //HANDLE declared as void * so actual type is void **

OR

STDMETHODIMP Function(LONG **hHC)

And want to access this function from the VB client.

View 1 Replies

C++ To VB - Rewrite The Program In VB?

Oct 12, 2010

So there is a program that is missing some files and written in C++, and it can no longer be compiled. Therefore I am trying to rewrite the program in Visual Basic (C++ is not my preferred language... lol) And I need some help understanding what this code is doing and how I can, in a way, "convert" it to VB language. I looked for a C++ to VB.NET converted but it costs $199 and I actually want to know what the code is doing... Here is part of the code for one of the C++ files (it is part of a program that decodes a file type into a readable format, BTW.):

[code]...

I want to know what is going on here and how I can recreate this in Visual Basic.

View 13 Replies

How To Rewrite EDI Translator

Mar 28, 2011

Currently I have to parse each row in the file into a string array segments(). Then I look at the first few elements to see where I am at. E.G.

'Patient Loop
IF Segment(0) = 'NM1' and Segment(1) = 'QC' and current loop = '2000' Then
PatientFName = Segment(2)

[code].....

View 9 Replies

How To Rewrite VB6 DefInt A-Z

Oct 28, 2009

How would I rewrite VB6 DefInt A-Z inVB.net?

View 1 Replies

How To Rewrite WTF File

Mar 7, 2009

I need a code that rewrite the Realmlist.Wtf file but before that it have to ask for the path to the file. And if its possible it have to remember the path, so if I click it again it automatically change it.

View 9 Replies

Rewrite A VB Project?

Jan 9, 2012

I'm new to programming and gave VB.NET a try. I (almost) finished a project (using VB.NET Express 2010) and now I'd like to rewrite it in HTML5 or CSS or Javascript or AJAX, or embedded Flash. Which one would you recommend? Which one as those 5 would be easier to learn for someone with some vb.net experience?

View 4 Replies

Rewrite Some Code To C#?

Oct 23, 2011

I have some code that i have wrote earlier in VB.NET

Dim zippedLogFileName = f.FullName + ".gz"
Try
Using inputStream = f.OpenRead(),

[code].....

View 4 Replies

Simple Text Rewrite With Tag?

Dec 6, 2009

basically the user enters phrases into the textboxes, and i use <TAG> in the text so that every time button is clicked the selected text is rewritten including a phrase from the textbox.

View 19 Replies

Take The Code And Rewrite It Into Subs?

Oct 10, 2010

Trying to learn subs at the moment.I need to take the following code and rewrite it into subs.

Private Sub btnCompute_Click(...) Handles btnCompute.Click
'Convert feet and inches to centimeters
Dim str As String[code]....

View 14 Replies

VB2010 Class Library: Create A Static Library Instead Of DLL?

Jun 21, 2011

I have a Visual Basic Class Library project. It generates a DLL. Is there a method to generate a static .LIB to which I can do a static link?Alternatively, can I do a static link against a DLL?

View 6 Replies

Asp.net - Rewrite URLS Using Global.asax

Apr 2, 2012

I'm trying to make some friendlyurls in my vb.net (.net 4) project and I'm trying to do it using something I read about global.asax and Application_Beginrequest but I can't get it to compile.

[Code]...

View 2 Replies

Asp.net - Subdirectory URL Automatic Rewrite Rule?

Apr 25, 2012

I'm using ASP.NET 4 / VB.NET / IIS to build a web application. Folks will access the web application via a URL like so: [URL] So, for example, here is the urls for Jane Doe, John Doe, and James Doe respectively: [URL] I need to somehow pass them off (no matter what name is entered) to a default.aspx page which then pulls in the name portion of the url and uses it to perform a lookup against the database which contains info. about this particular person and displays a personalized page based on that information.

[Code]...

View 1 Replies

Rewrite Code Below Using Select Case?

Jan 26, 2011

How to rewrite the code below using select case? [code]....

View 8 Replies

Rewrite This Line Of Code To Be More Generic?

Sep 22, 2009

I got that line of code and it's getting duplicated a lot

myString = If(myObj1.myProp Is Nothing, "", If(want = "abr", myObj1.myProp.abr, myObj1.myProp.desc))

VS 2008 Remember Textbox Text when Form reopens

View 3 Replies

Asp.net - Rewrite Webconfig Connection String At Runtime?

Mar 3, 2010

How to rewrite Webconfig connection string at runtime.I have input textbox for Server,UserName and Password.Is it Possible to read from these textbox?

View 1 Replies

Can Mono.Cecil Rewrite Debugging Symbols As .NET

Oct 27, 2011

After rewriting a VB.NET assembly with Mono.Cecil the 'Call Stack' debugging window in Visual Studio 2010 shows the language as C# and not VB.NET. Is it possible configure Mono.Cecil to rewrite an assembly so the debugger recognises the rewritten assembly as VB.NET?The following Mono.Cecil simply reads and saves an assembly without modification. However, the debugger reads the new assembly as C# instead of VB.NET.

Dim readerParameters = New ReaderParameters() With {.ReadSymbols = True}
Dim writerParameters = New WriterParameters() With {.WriteSymbols = True}

[code]....

It is desirable for the rewritten assembly to be VB.NET so the debugging windows 'Local' and 'Immediate Window' are the VB.NET versions rather than the C# versions.

View 1 Replies

Easy Way To 'rewrite' To Take Advantage Of Classes And Objects?

Jul 2, 2009

I have a VB.NET web app that is about 2000 lines of code, contains about 20 different subroutines, and about 50 different functions.Is there an easy way to "rewrite" this to take advantage of classes and objects?

View 5 Replies

Rewrite This Recursive Function To Remove The Recursion?

Dec 29, 2009

I got that little function(I changed the name of variables)

Private Function everythingLinked(ByRef myClass As cls, ByVal found As Boolean) As Boolean
If Not found AndAlso myClass.checked = False Then
myClass.checked = True

[code]....

I want to rewrite it so it would only be loop and no recursion and I'm currently lost?I'm passing a class to this function(with a starting value for found as false) to know if it is linked to the middle of the tree. The class got an array with a maximum of 4 link to other class and it can be circular(this is why I have a checked_link boolean).It does the recursion until there is no more link(return false) to check or until it find the middle link(return true).

edit?for an example, this

in pos 0 got link with 1
in pos 0 got link with 6
in pos 1 got link with 0

[code]....

middlepoint would be pos 15 the code above can prove that every position can be linked with the middlepoint so initial arg would be

everythingLinked(random pos, false)

and in this case it would be always true

View 5 Replies

Custom Welcome Screen For Xp And Vista - Rewrite Logonui.exe Completely

Feb 1, 2010

I want to rewrite logonui.exe completely. I want to add features that I just can't in ResHacker. Problem is I have no idea where to start. Well my idea is for it to be more visually appealing and faster. Almost like a dock with the user pics fading away as they are further away from the centre and having them zoom in and out aswell as move toward the centre when the mouse enters.

View 2 Replies

Outlook Application - Rewrite Procedure As A Project In Vs 2008

Mar 23, 2012

In my old VB6 app, I defined fields such as:

CODE:

As I am trying to rewrite this procedure as a project in vs 2008, all of the OutLook references are being flagged.

In project properties/references I added the reference: Microsoft Outlook 11.0 Object Liberary, but still flagged as error.

Is there another namespace or something I need?

View 1 Replies

VS 2005 What Can Use Instead Of A Pointer

May 1, 2010

I understand there are no pointers in VB.Net. I need to use something similar.The issue is that I have a structure that represent a deck of cards, with elements showing how many of each type of card there is. So I have my_deck.ace, my_deck.two, and so on.What I want to do is set a pointer called current_element that refers to any element in the structure. It may one time point to my_deck.three, and another time to my_deck.nine, and so on. It could point to any element.What I want to do is, for instance to set current_element to point to my_deck.ace, then decrementing current_element would reduce the count of aces by one.[code]that would work, but it's inelegant, I have about 30 different operations to perform, some of them using several lines of code. I'd like to avoid this if at all possible. I could tolerate doing it 2 or 3 times, but not 30.

View 8 Replies

Change The Pointer To Custom?

Oct 11, 2009

I need to change the default windows pointer to this: not generally, just in my program. (Form1) There's a Pointer Control But I Dont Know What That Does.

View 7 Replies

Compiled C Dll Can't Set Pointer When Called From ASP.NET App?

Dec 10, 2009

I've got a 3rd party C application that's compiled to a non-.NET non-COM DLL. It has one simple function declared like so: Declare Function CapiTaxRoutine Lib "taxcommono.dll" (ByVal sInData As String, ByVal OutputData As String, ByVal intINPutLength As Long) As Integer

If I place the taxcommono.dll in my path (C:WindowsSystem32 is what I'm using because it's what the vendor recommends),I can wire up a call to the function and it works just fine.It returns a 1 or 0 for success/failure, but it also sets the value of the OutputData string parameter (using some C pointer magic I'm not familiar with) to a huge fixed width format return record that has the data I need.When I call it from a .NET .exe application, it works just fine.When I try to call it from an ASP.NET application via a referenced compiled .NET wrapper DLL, it runs but can't set that string.In order to get it to run, I can't have taxcommono.dll in my path, but rather have to place it in my Bin directory of the web project.Does anyone know of a reason it can set the pointer when called from an .exe application but not when called from a web app?The .NET wrapper DLL I'm using works when called from our ERP software, which is not web based. But when I add a reference to that same DLL in the web app, it won't give me that output value.am used to just getting a return value instead of a function setting the value of one of my input parameters.

View 1 Replies

Create A Pointer To A Form?

Feb 10, 2010

In VB6 I have several child forms that have Subs and Controls with the same names.I need to access these Subs and Controls from public subs (in a module) that have a reference to the Active Form.[code]...

View 1 Replies

Create Pointer To Value Types?

Nov 12, 2010

I'm by no means a good programmer and I'm just trying to wrap my head around some of this stuff, so please forgive me if this is a dumb question.I want the following to produce a message box that says "2", not "5":

Public Class SomeClass
Private SomeInt As Integer = 5
Private SomeListOfInts As New List(Of Integer)

[code].....

View 1 Replies

How To Change The Cursor Pointer

Mar 30, 2009

im in a project using drag and drop events and.. , when i drag a label image, i need to change te cursor pointer from an image that is on a labelike the SO windows when you drag a file appears like a mirror with alfa minimun so its like the image but more transparent when i drag i need to change the cursor pointer from an image that i'm dragging by the way im, using visual studio .net and im programming in visual basic

View 6 Replies

How To Get The Function Pointer From Class

Nov 5, 2011

Public Class Form1 Public Declare Function GetModuleHandle Lib "kernel32" Alias "GetModuleHandleA" (ByVal lpModuleName As String) As IntPtr Public Declare Function GetProcAddress Lib "kernel32" Alias "GetProcAddress" (ByVal hModule As IntPtr, ByVal lpProcName As String) As IntPtr

Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

Dim hmod As IntPtr = GetModuleHandle(Nothing) 'Work Dim addrs As IntPtr = GetProcAddress(hmod , "TestFunction") 'Not work, always NULL why??

View 3 Replies

Mouse Pointer As Icon?

Feb 20, 2012

How do I change my mouse cursor/icon to use a image or icon. I want to make a simple "wack a mole" type game but I dont know how to change the pointer to a icon or at least get a image to follow the pointer.

View 7 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved