Print Page | Close Window

QuickPDF Library & Visual Studio 2008...

Printed From: Debenu Quick PDF Library - PDF SDK Community Forum
Category: For Users of the Library
Forum Name: I need help - I can help
Forum Description: Problems and solutions while programming with the Debenu Quick PDF Library and Debenu PDF Viewer SDK
URL: http://www.quickpdf.org/forum/forum_posts.asp?TID=1116
Printed Date: 06 Jun 25 at 8:14AM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: QuickPDF Library & Visual Studio 2008...
Posted By: cverhoff
Subject: QuickPDF Library & Visual Studio 2008...
Date Posted: 21 Jun 09 at 4:43AM
Hey Everyone,
 
     I am starting to migrate my software applications from VB6 to Visual Studio 2008.  Has anyone made this transition recently?  I really count on QuickPDF in my applications and I am just trying to figure out what I can expect in the conversion.  I hope that there isn't too many issues...
 
Thanks,
 
Curtis Verhoff
mailto:cverhoff@mavsoftware.com - cverhoff@mavsoftware.com
 



Replies:
Posted By: Ingo
Date Posted: 21 Jun 09 at 8:49PM
Hi Curtis!

What i've thought immediately is ...
all int, longint, ... should be int32 (if it's vb) and UInt32 (if it'sC#).
It's not a really problem using QuickPDF in VS-projects.

Cheers, Ingo


Posted By: cverhoff
Date Posted: 22 Jun 09 at 5:03PM
Ingo,
 
   Thanks once Again.  I will make sure the integer thing is correct when I transfer my code from VB6 to VS2008.  I just wanted to see if anyone else was using VS2008 with the QuickPDF Library and if they were having any issues.  I know that certain AcitveX(s) that I own are giving me issues with VS2008 and Vista/XP when the operating system has the whole DEP (Data Execution Prevention) thing is set to "On".  Anyways, like always you have been a real help.
 
Have A Great Day!!!
 
Cheers,
 
Curtis


Posted By: cverhoff
Date Posted: 04 Jul 09 at 4:44PM


Posted By: ray
Date Posted: 06 Jul 09 at 5:27AM
We are using the old iSed library and vs 2008 (both vb.net and C#) as an active-x via the interop.Ised dll..
 
It works fine except for the unmanaged deployment aspects..
 
Hope this helps..
 
 
 


Posted By: Ingo
Date Posted: 06 Jul 09 at 6:41AM
Hi!

I don't see real problems in programming...
Attached you'll see sample code (C#) calling functions (string and numeric) from an unmanaged dll.

Cheers, Ingo

using System;
using System.IO;
using System.Collections;
using System.Collections.Generic;
using System.Commy_numeric_var2nentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Diagnostics;
using System.Text.RegularExpressions;
using System.Runtime.Intermy_numeric_var1Services;

namespace your_program_name
{
    public partial class Form1 : Form
    {
        string filename;
        UInt32 my_numeric_var1, my_numeric_var2, my_numeric_var2, my_numeric_var3;

        [DllImmy_numeric_var2rt(@"Sample.dll", CallingConvention = CallingConvention.StdCall, EntryPoint = "Your_numeric_function1")]
        public static extern UInt32 Your_numeric_function1(string filename);

        [DllImmy_numeric_var2rt(@"Sample.dll", CallingConvention = CallingConvention.StdCall, EntryPoint = "Your_string_function1")]
        public static extern IntPtr Your_string_function1(string filename, UInt32 my_numeric_var1t, UInt32 my_numeric_var2, UInt32 my_numeric_var3);

        public Form1()
        {
            InitializeComponent();
        }

        private void Form1_Load(object sender, EventArgs e)
        {
            my_numeric_var3 = 0;
        }

        private void button1_Click(object sender, EventArgs e)
        {

            textBox1.Text = Marshal.PtrToStringAnsi(Your_string_function1(filename, my_numeric_var1, my_numeric_var2, my_numeric_var3));
        }

        private void button2_Click(object sender, EventArgs e)
        {
            if (openFileDialog1.ShowDialog() == DialogResult.OK)
            {
                filename = openFileDialog1.FileName;
                textBox2.Text = filename;
            }
        }

        private void button3_Click(object sender, EventArgs e)
        {
            textBox1.Text = Convert.ToString(Your_numeric_function1(filename));
        }
    }
}
 



Print Page | Close Window

Forum Software by Web Wiz Forums® version 11.01 - http://www.webwizforums.com
Copyright ©2001-2014 Web Wiz Ltd. - http://www.webwiz.co.uk