Create A Mock API For Third Party Library In Statically Typed Language?

Dec 30, 2009

I have an application in VB/C# .NET which needs to interact with a third party API, but I would like to interface it out so I can use a mock API for testing purposes.[code]...

View 2 Replies


ADVERTISEMENT

Create An Event Handler For A Third Party Library That I Use?

Jun 21, 2010

I am developing an application and I use a 3rd party library which is basically Native excel. The problem is that this library does not implement an event which is able to notify me when the value of a cell value changes.

[code]...

View 4 Replies

Any Third Party Library To Play An Mp3 File

Oct 17, 2010

is there is any 3 rd party library to play an mp3 file other than media player control....

View 2 Replies

"Expected Invocation On The Mock At Least Once But Was Never Performed" Error When Setting Up The Mock

Oct 26, 2011

I'm getting this error from Moq via NUnit, and it doesn't make much in the way of sense to me. "Expected invocation on the mock at least once, but was never performed: x => x.DeleteItem(.$VB$Local_item)"

[Code]...

View 1 Replies

Using PInvoke To Access Some Routines From A Third Party Library?

Sep 9, 2009

I'm using PInvoke to access some routines from a third party library, however i'm getting SEHExceptions when trying to use callbacks defined for one particular method. The callbacks are used to provide feedback from other unmanaged methods within the third party library, passing a string back to the calling application containing a status message.

[Code]...

View 18 Replies

Curl - Import The PHP's Library File Php_curl.dll In Another Language Like .NET?

Jan 7, 2011

I would like to create a webpage data parser and for that needs, I would like it to run in a Dekstop application.I would like to know if we can import php_curl.dll in a VB.NET applications ?

View 2 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

Create With A Third Party Program A Setup To App?

Feb 4, 2012

I create with a third party program a setup to my app.Do I need to install this files too?

[Code]...

View 2 Replies

VS 2010 - Create An VB Application To Compress Files, Without Using A 3rd Party App?

Jul 28, 2011

I'm just wondering if it is possible to create an vb.net application to compress files, without using a 3rd party app. If yes, can you please point me in the right direction, give me some tips, tutorials or sample code?

View 5 Replies

VS 2010 Create A DLL Injector (merely For 3rd Party Option-toggling)?

Oct 15, 2009

I'm trying to create a DLL injector (merely for 3rd party option-toggling), but for some reason this code doesn't work.It will always return "Failed to create thread!"Here are the contents of the (Form1.vb)

Public Class Form1
Private Declare Function GetProcAddress Lib "kernel32" (ByVal hModule As Long, ByVal lpProcName As String) As Long
Private Declare Function GetModuleHandle Lib "kernel32" Alias "GetModuleHandleA" (ByVal lpModuleName As String) As Long
Private Declare Function LoadLibrary Lib "kernel32" Alias "LoadLibraryA" (ByVal lpLibFileName As String) As Long

[code]....

View 6 Replies

VS 2008 Create An Interface Between A Third Party Application Which Can Make Use Of C/C++ DLLs

Nov 30, 2010

I am trying to create an interface between a third party application which can make use of C/C++ DLLs, but no interface directly to .NET. What I was hoping to accomplish (not sure if possible though), is create a very basic C++ DLL (not .NET), which the third party application would call directly. This DLL would contain a basic method such as "DoSomething()". Somehow, from my .NET application, I want to "listen" to this DLL and "takeover" the DoSomething() method, and then returning the result back to the DLL, which will in turn return the result back to the calling third party application.

I don't even know if this is possible because I'm sure I would somehow have to get a hold of the memory space of the DLL as initiated by the third party application. Also, it seems that creating a managed DLL does not work, based on feedback from other individuals who have tried this.

View 1 Replies

Create A Strongly Typed View Page Using ASP.NET MVC ?

Apr 28, 2009

I am using the ASP.NET MVC VB.NET XML Literals View Engine created by Dmitry Robsman and described on his blog in this post.

[URL]

I would like to create strongly typed view pages using this view engine, but it doesn't seem to contain the requisite VbView(Of TModel) generic type by which I would create such a view class.

The end result should look something like this:

Namespace Views.Client
Public Class Details(Of Models.Client)
Inherits SiteMaster

[Code]....

Once there is a VbView(Of TModel) class that inherits from Dmitry's VbView class, how to hook that up so that it works with standard MVC controllers that call the view like this.

Function Details(ByVal id As Integer) As ActionResult
Dim c = SomeGetClientFunction(id)
Return View(c)
End Function

View 1 Replies

Create Typed Data Set Tables Dynamically?

Apr 5, 2011

is it possible to create typed data set tables dynamically or modify columns and the data types of an existing table. what i'm trying to achieve is to read the sqlString from an external file and populate a typed dataset table in order to use it as a crystal report data source.

View 3 Replies

Stop Using DLL And Statically Link To A LIB?

Sep 1, 2010

I have a VB 20008 Express project which currently uses a DLL. I would rather distribute a single .EXE

I used DLL2lib and converted it to a library, but as I haven't done this before,

How can remove the DLL from my project? The Project menu has an "Add resource" option, but I can't find any way to remove it (it doesn't show up in Project/Properties). Do I simply remove the Imports statements from my code? How do I statically link to the library?

View 1 Replies

C# - When Using FormView With Templates, Reference Controls Statically?

Jul 18, 2009

Having:

<asp:FormView ID="frmEmployee" runat="server">
<EditTemplate>
<asp:TextBox ID="txtFirstName" runat="server" />

[code]....

is there a way to reference this control statically, without having to use FindControl?

VB.Net
txtFirstName.Text = "George"
C#
txtFirstName.Text = "George";

View 1 Replies

Create A Custom Language?

May 16, 2011

So I know this will end up being a hard task, but I want to figure out how to do it. My language won't be outrageously sophisticated. Here is an example of what it'll do[code]...

View 9 Replies

How To Create Custom Language

Dec 13, 2009

So I know this will end up being a hard task, but I want to figure out how to do it. My language won't be outrageously sophisticated. Here is an example of what it'll do:

public.Block main()
def Tex01 as ImageFile =->file->load("C:userspicture.png")
Tex01->recolorable = true

[code].....

View 7 Replies

VS 2008 - Create A Programming Language Using VB

Aug 21, 2009

Is it possible to create a programming language using vb.net?

View 4 Replies

Elevate Security Permissions For Statically Referenced Unmanaged Code?

Apr 25, 2011

In my managed VB.NET code, I am able to write a file out to my desktop. Although, the statically referenced unmanaged code is unable to. I have hunted all over MSDN to find out how I can elevate the security permissions for this library method, but am unableto find anything.I declare the method as...Declare Sub WriteFile Lib "DataLog.dll" (ByVal fileName As String)Although, it throws an exception due to being forbidden from writing to the desktop. Is there an attribute

View 7 Replies

Create A .net Windows Application In Multi-language?

Feb 23, 2009

If i want to create a vb.net windows application in multi-language (EnglishArabic). Is there any steps i need to do?I installed the Arabic at my windows XP and I am able to write the labels and the the textbox for example in arabic but is there a way for the controls to shifts automatically?

View 7 Replies

Create A Program That Translates English To Another Language?

Jun 3, 2009

Im trying to create a program that translates english to another language. i have no clue how to begin doing this, i have the program designed and all of the buttons besides the "Translate" button coded...it has 2 radio button to choose which way you are translating, (English to german, or German to english) the input is a textbox, and the output is a label. and its going to be nothing more than a "replace this word with that word" kind of program. Im also going to connect to a database where the list of words will be held.

View 3 Replies

Create Local Language Fonts Using Vs2003?

Aug 10, 2009

how to create local language fonts using vs2003.

View 5 Replies

Converting DLL's Created With Intermediate Language To Create Entry Points Within A DLL

Nov 16, 2009

In need of some desperate help. Has anyone had any experience with a software product called Pres? The programme provides a function (userhook) that can run externally created dll's as the programme offers no COM support. The basic requirements for the dll are as follow.

1, The dll requires a public function named UserInstruction

2, The UserInstruction must have 5 parameters. The first and second of type long, the third a double array and the fourth and fifth parameters required type is a string.

This all seems pretty simple. But as .NET doesnt support exporting functions within a DLL to allow direct public access to the function through third party software it becomes tricky. After doing some research it seems as though this isn't possible in .NET. The only way I can see to do this is to convert the dll to Intermediate Language and play around with it once this is converted and then convert the IL code back to a DLL. I found this on the following site [URL]..After trying this when I try to use the DLL via Pres I am still getting no joy.

View 1 Replies

Could Not Run Unit Test With Mock

Apr 18, 2012

I tried to make an unit test for this method which is pretty simple only add an object into the data base and if it works well returns true

[Code]...

View 1 Replies

Mvc - MOQ: Can't Cast Moq.Mock To Interface In .Net

Nov 3, 2010

i am writing a simple unit test to check if the proper view name is being returned by an ActionResult in VB.Net MVC 1. The controller requires a service and I am trying to Mock the service but keep getting this error.Unable to cast object of type 'Moq.Mock`1[SRE.Web.Mvc.INotificationService]' to type 'SRE.Web.Mvc.INotificationService'.As I said, the simple and im not sure where to go from here.

<Test()> _
Public Sub Index_Properly_Validates_Email_Address()
'Arrange
Dim fakeNotifcationService As New Mock(Of INotificationService)(MockBehavior.Strict)

[code]....

View 2 Replies

Create A New User Account In Visual Studio 2005 Or 2008 (vb Language)

May 17, 2009

I want to create a new user account using ms.access database. How to recall back the database to login form so that we can using multi user account. So with the validate the user account, i can change the username and password anytime as the windows user acoount service.

View 4 Replies

Create .Net Library With Sub-assemlies

Aug 10, 2011

How can I create a dll in .NET that has sub-assemblies? For example, if I have a project "MyUtilities", I'd like to create a sub-assembly "My Utilities. EmailUtilities" with classes specific to emailing. Then, in a new project, when I add a reference to the compiled dll of MyUtilities, I could access the EmailUtilities classes using code like:[code]

View 4 Replies

Create A Document Library?

Feb 7, 2012

I need to create a document library, that many user will have access to, which in it's simpliest form is simple.

The user can select a document and store it in a predeterimined file. The code I propose use to do this is[code]...

View 2 Replies

Localization - Menu Strip To Select An Other Language - Doesn't Change My Menustip Text To My Selected Language

Mar 29, 2010

In my winform app in VB.NET I want to use the localization option. But i have a few questions/problems. I'm using a menu strip to select an other language. But it seems that is doesn't change my menustip text to my selected language. It does change my labels, buttons, and textboxes but menu strips don't seem to change when I choose another language. Also is it possible to get those resx files such as MyForm.fr-FR.resx compiled so it isn't an external file outside my app? Or to get those files in an Language folder at the same location of my app, so i don't have all those fr-FR & nl-Nl folders in the same location as my program?

View 4 Replies

Creating A Mock Configuration Setup?

Nov 29, 2011

The program I am building requires a lot of initial user input. I was wanting to stream line this by creating a 'config' file so to speak that after the user enters all the initial data they can click a button that will save their entries into a secure file. When they leave for the day and come back they can click the load button and it auto fills in all the relevant data that will be stored in the file.

Still digging through the MSDN for help, but no luck on options yet.

I was thinking save the information to a text file somehow, but passwords will be stored and I would like to make it secure if possible.

View 7 Replies







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