473,811 Members | 2,714 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Why does this fail? Is my extern signature wrong?

OK, I'm trying to programmaticall y create an Access database/mdb file but
CreateDb(string ) always returns false. I don't know what I'm doing wrong, is
it my extern signature?

Thx in advance

my references:
http://msdn.microsoft.com/library/de...ata_source.asp

http://support.microsoft.com/default...NoWebContent=1
[DllImport("ODBC CP32.DLL")]
private static extern bool SQLConfigDataSo urce(
IntPtr hwndParent,
uint fRequest,
[MarshalAs(Unman agedType.LPStr)] string lpszDriver,
[MarshalAs(Unman agedType.LPStr)] string lpszAttributes
);

public static bool CreateDb(string dbName)
{
const string driver = @"Microsoft Access Driver (*.mdb)";
const int ODBC_ADD_DSN = 1;
string path = Environment.Cur rentDirectory + "\\" + dbName + "
General";
return SQLConfigDataSo urce(IntPtr.Zer o, ODBC_ADD_DSN, driver,
"CREATE_DB= " + path);
}
Nov 15 '05 #1
8 1550
Are you certain the directory path exists?

Keep in mind that using Environment.Cur rentDirectory is usually not a good
idea in these situations since it will not necessarly return the directory
where your app is located, and here's why:

Assume you have a command prompt open and you are at C:\
Now, assume your app is located in C:\program files\MyDBApp.
Now, in the command prompt you type C:\program files\mydbapp\m ydbapp.exe to
start your app, Environment.Cur rentDirectory will return C:\ This is
obviously not what you wanted.

The same holds true when starting from a shortcut on the start menu. Unless
the Start In Directory property is set to the directory your app is located
the same thing will happen. Even if you install the app and create the
shortcut. you cannot guarantee the user won't change the shortcut somehow.

Instead if using Environment.Cur rentDirectory consider using
Application.Sta rtupPath
HTH
Brian W

"Hasani" <HJ****@hotmail .c0m> wrote in message
news:0T******** *************@t wister.nyc.rr.c om...
OK, I'm trying to programmaticall y create an Access database/mdb file but
CreateDb(string ) always returns false. I don't know what I'm doing wrong, is it my extern signature?

Thx in advance

my references:
http://msdn.microsoft.com/library/de...ata_source.asp
http://support.microsoft.com/default...NoWebContent=1 [DllImport("ODBC CP32.DLL")]
private static extern bool SQLConfigDataSo urce(
IntPtr hwndParent,
uint fRequest,
[MarshalAs(Unman agedType.LPStr)] string lpszDriver,
[MarshalAs(Unman agedType.LPStr)] string lpszAttributes
);

public static bool CreateDb(string dbName)
{
const string driver = @"Microsoft Access Driver (*.mdb)";
const int ODBC_ADD_DSN = 1;
string path = Environment.Cur rentDirectory + "\\" + dbName + "
General";
return SQLConfigDataSo urce(IntPtr.Zer o, ODBC_ADD_DSN, driver,
"CREATE_DB= " + path);
}

Nov 15 '05 #2
Thx for that, but regardless of what path I specify, the function always
fails.
"Brian W" <brianw@gold_de ath_2_spam_rush .com> wrote in message
news:ed******** ******@TK2MSFTN GP10.phx.gbl...
Are you certain the directory path exists?

Keep in mind that using Environment.Cur rentDirectory is usually not a good
idea in these situations since it will not necessarly return the directory
where your app is located, and here's why:

Assume you have a command prompt open and you are at C:\
Now, assume your app is located in C:\program files\MyDBApp.
Now, in the command prompt you type C:\program files\mydbapp\m ydbapp.exe to start your app, Environment.Cur rentDirectory will return C:\ This is
obviously not what you wanted.

The same holds true when starting from a shortcut on the start menu. Unless the Start In Directory property is set to the directory your app is located the same thing will happen. Even if you install the app and create the
shortcut. you cannot guarantee the user won't change the shortcut somehow.

Instead if using Environment.Cur rentDirectory consider using
Application.Sta rtupPath
HTH
Brian W

"Hasani" <HJ****@hotmail .c0m> wrote in message
news:0T******** *************@t wister.nyc.rr.c om...
OK, I'm trying to programmaticall y create an Access database/mdb file but CreateDb(string ) always returns false. I don't know what I'm doing wrong,
is
it my extern signature?

Thx in advance

my references:

http://msdn.microsoft.com/library/de...ata_source.asp

http://support.microsoft.com/default...NoWebContent=1
[DllImport("ODBC CP32.DLL")]
private static extern bool SQLConfigDataSo urce(
IntPtr hwndParent,
uint fRequest,
[MarshalAs(Unman agedType.LPStr)] string lpszDriver,
[MarshalAs(Unman agedType.LPStr)] string lpszAttributes
);

public static bool CreateDb(string dbName)
{
const string driver = @"Microsoft Access Driver (*.mdb)";
const int ODBC_ADD_DSN = 1;
string path = Environment.Cur rentDirectory + "\\" + dbName + "
General";
return SQLConfigDataSo urce(IntPtr.Zer o, ODBC_ADD_DSN, driver,
"CREATE_DB= " + path);
}


Nov 15 '05 #3
BTW, if you pass a valid HWND the function should open a dialog so that you
can provide additional parameters, if that is the problem. This is useful
for debugging this sort of thing.

Also, check value of Marshal.GetLast Win32Error() after the function call.

Finally, for your applicaiton, is it abbsolutly necessary you have a DSN for
the MDB?
HTH2
Brian W


"Hasani" <HJ****@hotmail .c0m> wrote in message
news:0T******** *************@t wister.nyc.rr.c om...
OK, I'm trying to programmaticall y create an Access database/mdb file but
CreateDb(string ) always returns false. I don't know what I'm doing wrong, is it my extern signature?

Thx in advance

my references:
http://msdn.microsoft.com/library/de...ata_source.asp
http://support.microsoft.com/default...NoWebContent=1 [DllImport("ODBC CP32.DLL")]
private static extern bool SQLConfigDataSo urce(
IntPtr hwndParent,
uint fRequest,
[MarshalAs(Unman agedType.LPStr)] string lpszDriver,
[MarshalAs(Unman agedType.LPStr)] string lpszAttributes
);

public static bool CreateDb(string dbName)
{
const string driver = @"Microsoft Access Driver (*.mdb)";
const int ODBC_ADD_DSN = 1;
string path = Environment.Cur rentDirectory + "\\" + dbName + "
General";
return SQLConfigDataSo urce(IntPtr.Zer o, ODBC_ADD_DSN, driver,
"CREATE_DB= " + path);
}

Nov 15 '05 #4
man, I already changed the code so that an empty mdb is embeded in the exe
=/
Thx for the input though
"Brian W" <brianw@gold_de ath_2_spam_rush .com> wrote in message
news:u7******** ******@tk2msftn gp13.phx.gbl...
BTW, if you pass a valid HWND the function should open a dialog so that you can provide additional parameters, if that is the problem. This is useful
for debugging this sort of thing.

Also, check value of Marshal.GetLast Win32Error() after the function call.

Finally, for your applicaiton, is it abbsolutly necessary you have a DSN for the MDB?
HTH2
Brian W


"Hasani" <HJ****@hotmail .c0m> wrote in message
news:0T******** *************@t wister.nyc.rr.c om...
OK, I'm trying to programmaticall y create an Access database/mdb file but CreateDb(string ) always returns false. I don't know what I'm doing wrong,
is
it my extern signature?

Thx in advance

my references:

http://msdn.microsoft.com/library/de...ata_source.asp

http://support.microsoft.com/default...NoWebContent=1
[DllImport("ODBC CP32.DLL")]
private static extern bool SQLConfigDataSo urce(
IntPtr hwndParent,
uint fRequest,
[MarshalAs(Unman agedType.LPStr)] string lpszDriver,
[MarshalAs(Unman agedType.LPStr)] string lpszAttributes
);

public static bool CreateDb(string dbName)
{
const string driver = @"Microsoft Access Driver (*.mdb)";
const int ODBC_ADD_DSN = 1;
string path = Environment.Cur rentDirectory + "\\" + dbName + "
General";
return SQLConfigDataSo urce(IntPtr.Zer o, ODBC_ADD_DSN, driver,
"CREATE_DB= " + path);
}


Nov 15 '05 #5
You're using an absolute path - you need to use a relative path.
e.g.
string path = ".\\" + dbName + " General";

"Hasani" <HJ****@hotmail .c0m> wrote in message
news:mx******** *************** @twister.nyc.rr .com...
Thx for that, but regardless of what path I specify, the function always
fails.
"Brian W" <brianw@gold_de ath_2_spam_rush .com> wrote in message
news:ed******** ******@TK2MSFTN GP10.phx.gbl...
Are you certain the directory path exists?

Keep in mind that using Environment.Cur rentDirectory is usually not a good
idea in these situations since it will not necessarly return the directory where your app is located, and here's why:

Assume you have a command prompt open and you are at C:\
Now, assume your app is located in C:\program files\MyDBApp.
Now, in the command prompt you type C:\program files\mydbapp\m ydbapp.exe

to
start your app, Environment.Cur rentDirectory will return C:\ This is
obviously not what you wanted.

The same holds true when starting from a shortcut on the start menu.

Unless
the Start In Directory property is set to the directory your app is

located
the same thing will happen. Even if you install the app and create the
shortcut. you cannot guarantee the user won't change the shortcut somehow.
Instead if using Environment.Cur rentDirectory consider using
Application.Sta rtupPath
HTH
Brian W

"Hasani" <HJ****@hotmail .c0m> wrote in message
news:0T******** *************@t wister.nyc.rr.c om...
OK, I'm trying to programmaticall y create an Access database/mdb file

but CreateDb(string ) always returns false. I don't know what I'm doing wrong,
is
it my extern signature?

Thx in advance

my references:

http://msdn.microsoft.com/library/de...ata_source.asp

http://support.microsoft.com/default...NoWebContent=1
[DllImport("ODBC CP32.DLL")]
private static extern bool SQLConfigDataSo urce(
IntPtr hwndParent,
uint fRequest,
[MarshalAs(Unman agedType.LPStr)] string lpszDriver,
[MarshalAs(Unman agedType.LPStr)] string lpszAttributes
);

public static bool CreateDb(string dbName)
{
const string driver = @"Microsoft Access Driver (*.mdb)";
const int ODBC_ADD_DSN = 1;
string path = Environment.Cur rentDirectory + "\\" + dbName + "
General";
return SQLConfigDataSo urce(IntPtr.Zer o, ODBC_ADD_DSN, driver,
"CREATE_DB= " + path);
}



Nov 15 '05 #6

I'm sorry, I don't understand your statement.

What does that have to do with :

1) Passing and HWND so the ODBC manager can show you a dialog indicating
you missed some parameters.
Doing so, will allow you to fill in the necessary parameters to make the
connection work. After filling in the connections, you can inspect the
connection string to see what it is you need to add to your code to make it
work without the window.

2) Checking GetLastWin32Err or() after you make the call
This may tell you *why* it failed.

3) The question, Is it absolutly necessary to use a DSN?
It is possible, and prefered (IMO) to connect to an MDB with out a DSN.
Regards
Brian W

"Hasani" <HJ****@hotmail .c0m> wrote in message
news:LP******** *************** @twister.nyc.rr .com...
man, I already changed the code so that an empty mdb is embeded in the exe
=/
Thx for the input though
"Brian W" <brianw@gold_de ath_2_spam_rush .com> wrote in message
news:u7******** ******@tk2msftn gp13.phx.gbl...
BTW, if you pass a valid HWND the function should open a dialog so that

you
can provide additional parameters, if that is the problem. This is useful
for debugging this sort of thing.

Also, check value of Marshal.GetLast Win32Error() after the function call.
Finally, for your applicaiton, is it abbsolutly necessary you have a DSN

for
the MDB?
HTH2
Brian W


"Hasani" <HJ****@hotmail .c0m> wrote in message
news:0T******** *************@t wister.nyc.rr.c om...
OK, I'm trying to programmaticall y create an Access database/mdb file

but CreateDb(string ) always returns false. I don't know what I'm doing wrong,
is
it my extern signature?

Thx in advance

my references:

http://msdn.microsoft.com/library/de...ata_source.asp

http://support.microsoft.com/default...NoWebContent=1
[DllImport("ODBC CP32.DLL")]
private static extern bool SQLConfigDataSo urce(
IntPtr hwndParent,
uint fRequest,
[MarshalAs(Unman agedType.LPStr)] string lpszDriver,
[MarshalAs(Unman agedType.LPStr)] string lpszAttributes
);

public static bool CreateDb(string dbName)
{
const string driver = @"Microsoft Access Driver (*.mdb)";
const int ODBC_ADD_DSN = 1;
string path = Environment.Cur rentDirectory + "\\" + dbName + "
General";
return SQLConfigDataSo urce(IntPtr.Zer o, ODBC_ADD_DSN, driver,
"CREATE_DB= " + path);
}



Nov 15 '05 #7
1) I don't want end user input.
2) Can no longer do because code has been deleted.
3) No, it is not necessary. I needed to create an access database, not
connect to one.

Well, When I posted my last reply, I had already modified the code using a
different approach to solve a problem I was having.
The problem is, I have an application that needs to read and write to a
database to store stuff. When the application is first run, it will check
for the existence of this database (a mdb file) in the path of where it was
executed from. If the database does not exist, it is to create a database.
The database creation process is to be transparent and there can be no user
input.
So I googled how to programmaticall y create a db and I came across the kb
article. I tried to implement this, and I think I did it properly but I was
never able to create a new access database using the SQLConfigDataSo urce
method. I then posted my problem. Almost an hour later you mentioned the get
last error (Which I thank you for), but between the time of my original post
and your 'get last error' post, I decided to just include an empty access
database file to the output as an embedded resource and when the application
is run, it will extract this database if no other access database exist. And
it works too, and if it aint broke, don't try 2 fix it!

Cheers

"Brian W" <brianw@gold_de ath_2_spam_rush .com> wrote in message
news:ea******** ******@TK2MSFTN GP12.phx.gbl...

I'm sorry, I don't understand your statement.

What does that have to do with :

1) Passing and HWND so the ODBC manager can show you a dialog indicating
you missed some parameters.
Doing so, will allow you to fill in the necessary parameters to make the
connection work. After filling in the connections, you can inspect the
connection string to see what it is you need to add to your code to make it work without the window.

2) Checking GetLastWin32Err or() after you make the call
This may tell you *why* it failed.

3) The question, Is it absolutly necessary to use a DSN?
It is possible, and prefered (IMO) to connect to an MDB with out a DSN.
Regards
Brian W

"Hasani" <HJ****@hotmail .c0m> wrote in message
news:LP******** *************** @twister.nyc.rr .com...
man, I already changed the code so that an empty mdb is embeded in the exe
=/
Thx for the input though
"Brian W" <brianw@gold_de ath_2_spam_rush .com> wrote in message
news:u7******** ******@tk2msftn gp13.phx.gbl...
BTW, if you pass a valid HWND the function should open a dialog so that
you
can provide additional parameters, if that is the problem. This is useful for debugging this sort of thing.

Also, check value of Marshal.GetLast Win32Error() after the function call.
Finally, for your applicaiton, is it abbsolutly necessary you have a
DSN for
the MDB?
HTH2
Brian W


"Hasani" <HJ****@hotmail .c0m> wrote in message
news:0T******** *************@t wister.nyc.rr.c om...
> OK, I'm trying to programmaticall y create an Access database/mdb
file but
> CreateDb(string ) always returns false. I don't know what I'm doing

wrong,
is
> it my extern signature?
>
> Thx in advance
>
> my references:
>

http://msdn.microsoft.com/library/de...ata_source.asp >
>

http://support.microsoft.com/default...NoWebContent=1
> [DllImport("ODBC CP32.DLL")]
> private static extern bool SQLConfigDataSo urce(
> IntPtr hwndParent,
> uint fRequest,
> [MarshalAs(Unman agedType.LPStr)] string lpszDriver,
> [MarshalAs(Unman agedType.LPStr)] string lpszAttributes
> );
>
> public static bool CreateDb(string dbName)
> {
> const string driver = @"Microsoft Access Driver (*.mdb)";
> const int ODBC_ADD_DSN = 1;
> string path = Environment.Cur rentDirectory + "\\" + dbName + " > General";
> return SQLConfigDataSo urce(IntPtr.Zer o, ODBC_ADD_DSN, driver, > "CREATE_DB= " + path);
> }
>
>



Nov 15 '05 #8
Oh OK, I see your point.

FWIW, I understand not wanting to have user input, I only suggested it as a
way to debug your problem only.

Best of luck
Brian W
"Hasani" <HJ****@hotmail .c0m> wrote in message
news:Bu******** *************** @twister.nyc.rr .com...
1) I don't want end user input.
2) Can no longer do because code has been deleted.
3) No, it is not necessary. I needed to create an access database, not
connect to one.

Well, When I posted my last reply, I had already modified the code using a
different approach to solve a problem I was having.
The problem is, I have an application that needs to read and write to a
database to store stuff. When the application is first run, it will check
for the existence of this database (a mdb file) in the path of where it was executed from. If the database does not exist, it is to create a database.
The database creation process is to be transparent and there can be no user input.
So I googled how to programmaticall y create a db and I came across the kb
article. I tried to implement this, and I think I did it properly but I was never able to create a new access database using the SQLConfigDataSo urce
method. I then posted my problem. Almost an hour later you mentioned the get last error (Which I thank you for), but between the time of my original post and your 'get last error' post, I decided to just include an empty access
database file to the output as an embedded resource and when the application is run, it will extract this database if no other access database exist. And it works too, and if it aint broke, don't try 2 fix it!

Cheers

"Brian W" <brianw@gold_de ath_2_spam_rush .com> wrote in message
news:ea******** ******@TK2MSFTN GP12.phx.gbl...

I'm sorry, I don't understand your statement.

What does that have to do with :

1) Passing and HWND so the ODBC manager can show you a dialog indicating
you missed some parameters.
Doing so, will allow you to fill in the necessary parameters to make the
connection work. After filling in the connections, you can inspect the
connection string to see what it is you need to add to your code to make it
work without the window.

2) Checking GetLastWin32Err or() after you make the call
This may tell you *why* it failed.

3) The question, Is it absolutly necessary to use a DSN?
It is possible, and prefered (IMO) to connect to an MDB with out a DSN.
Regards
Brian W

"Hasani" <HJ****@hotmail .c0m> wrote in message
news:LP******** *************** @twister.nyc.rr .com...
man, I already changed the code so that an empty mdb is embeded in the

exe =/
Thx for the input though
"Brian W" <brianw@gold_de ath_2_spam_rush .com> wrote in message
news:u7******** ******@tk2msftn gp13.phx.gbl...
> BTW, if you pass a valid HWND the function should open a dialog so that you
> can provide additional parameters, if that is the problem. This is

useful
> for debugging this sort of thing.
>
> Also, check value of Marshal.GetLast Win32Error() after the function

call.
>
> Finally, for your applicaiton, is it abbsolutly necessary you have a DSN for
> the MDB?
>
>
> HTH2
> Brian W
>
>
>
>
>
>
> "Hasani" <HJ****@hotmail .c0m> wrote in message
> news:0T******** *************@t wister.nyc.rr.c om...
> > OK, I'm trying to programmaticall y create an Access database/mdb file but
> > CreateDb(string ) always returns false. I don't know what I'm doing
wrong,
> is
> > it my extern signature?
> >
> > Thx in advance
> >
> > my references:
> >
>

http://msdn.microsoft.com/library/de...data_source.as
p
> >
> >
>

http://support.microsoft.com/default...NoWebContent=1
> > [DllImport("ODBC CP32.DLL")]
> > private static extern bool SQLConfigDataSo urce(
> > IntPtr hwndParent,
> > uint fRequest,
> > [MarshalAs(Unman agedType.LPStr)] string lpszDriver,
> > [MarshalAs(Unman agedType.LPStr)] string lpszAttributes
> > );
> >
> > public static bool CreateDb(string dbName)
> > {
> > const string driver = @"Microsoft Access Driver (*.mdb)";
> > const int ODBC_ADD_DSN = 1;
> > string path = Environment.Cur rentDirectory + "\\" + dbName
+ " > > General";
> > return SQLConfigDataSo urce(IntPtr.Zer o, ODBC_ADD_DSN, driver, > > "CREATE_DB= " + path);
> > }
> >
> >
>
>



Nov 15 '05 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
5123
by: cppaddict | last post by:
In JNI header files generated by javah, what is going on with the 'extern "C"' which is inserted around the native method when "cplusplus" is defined. I would think you would only need extern "C" when cplusplus wasn't defined, ie, when you were using C and not C++. I want to implement my native methods in C++. Can I do this when they're wrapped by extern "C"? If so, what exactly is extern "C" doing?
3
10658
by: Rolf S. Arvidson | last post by:
Be kind, a newb question here. I don't understand why I get a compile-time error from the following: I define a variable in main.cpp as such double x = 1.; int _tmain(int argc, _TCHAR* argv){ ...; }
22
6033
by: Ian | last post by:
The title says it all. I can see the case where a function is to be called directly from C, the name mangling will stuff this up. But I can't see a reason why a template function can't be given extern "C" linkage where it is to be assigned to a C function pointer. Ian
5
1731
by: Colleyville Alan | last post by:
I have an application that uses SQL. I am writing a new piece to it, so I used the same approach that worked before. I set up a string and add to it, i.e. strMySql = "some Sql Statement" and then strMySql = strMySql + "some other new statement". The program keeps crashing saying I am running an invalid operation. I go to debug.print and copy the contents of the strMySql to the sql window. Sure enough, where the sql statement wrapped...
1
423
by: dyu9999 | last post by:
Hi, I have a following error and would appreciate any help. ======================================================== * in foo.c I have typedef struct _my_data_t { int a;
2
2255
by: codymanix | last post by:
Why can a method have the specifiers extern and override together in its signature? A extern method is a function called from a native dll. but how could i override a function??? The same is for extern and the unsafe-modifier - aren't extern functions alwys "unsafe" in the sense of "non-dotnet-function"? -- cody
6
1320
by: Matt Kowalczyk | last post by:
Hello, Can someone explain to me why the following code works correctly? It would seem like it shouldn't. irc_client.c contains: #include "ircclient.h IRCClient* init_irc_client() {
7
3082
by: getridofthespam | last post by:
Hi all, Why doesn't _tzset return an error when the TZ environment variable does not contain a valid timezone? Other question: how to check the timezone is a valid one? Thanks for all answers.
5
2056
by: Matt Kowalczyk | last post by:
How come this function doesn't work? void shift(char** list, int index) { char buff = (*list); memmove((*list)+1, *list, index); (*list) = buff; return; } I call it like so:
0
9727
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9605
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10647
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10386
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
6889
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5554
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5692
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3865
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3017
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.