1,076,134 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?

Posts by __avd which have been Voted Down

>I'm considering serialization as a means of creating a simple database for an application.

Please read Serialization wiki.

__avd
Posting Genius (adatapost)
Moderator
8,736 posts since Oct 2008
Reputation Points: 2,141
Solved Threads: 1,262
Skill Endorsements: 50

Text from MSDN Page :

The Timeout property cannot be set to a value greater than 525,600 minutes (1 year). The default value is 20 minutes.

The following code example sets the timeout session attribute to 30 minutes in the Web.config file.

<configuration>
  <system.web>
    <sessionState 
      mode="InProc"
      cookieless="true"
      timeout="30" />
  </system.web>
</configuration>

You can override this setting programatically:

Session.TimeOut=50;
__avd
Posting Genius (adatapost)
Moderator
8,736 posts since Oct 2008
Reputation Points: 2,141
Solved Threads: 1,262
Skill Endorsements: 50
__avd
Posting Genius (adatapost)
Moderator
8,736 posts since Oct 2008
Reputation Points: 2,141
Solved Threads: 1,262
Skill Endorsements: 50

Your have to set environment variable PATH with "C:\j2sdk1.4.1\bin>".

However you may run this program.

C:\j2sdk1.4.1\bin>java -classpath d:\oracle\product\10.2.0\db1\jdbc\lib;c:\;  OraThin
__avd
Posting Genius (adatapost)
Moderator
8,736 posts since Oct 2008
Reputation Points: 2,141
Solved Threads: 1,262
Skill Endorsements: 50

Does anyone know how to give a GUI look to your C++ "Console Application".

I cannot use Win32 API or any other template except the console application because I use Turbo C++ 3.0 IDE for development and I want my Application to be platform independent while using WIN32 API will limit it to Windows.

I am clear with arrays,switch,if,else if etc.

If possible could you please give an example.

A graphics.h header file and set of .chr and .bgi files are needed to give GUI look.

#include <graphics.h>
...
..

int main()
{
    int gd=DETECT;  // Graphics Driver
    int gm;                 // Graphics Mode
  
    initgraph(&gd,&gm,"c:\\tc\\bgi");  // c:\\tc\\bgi - path for .chr and .bgi
    circle(200,200,30);
    cin.get();
    closegraph();
   
  return 0;
}
__avd
Posting Genius (adatapost)
Moderator
8,736 posts since Oct 2008
Reputation Points: 2,141
Solved Threads: 1,262
Skill Endorsements: 50

You need a Web Service (develop or buy) and JavaScript code to invoke Web service method.

__avd
Posting Genius (adatapost)
Moderator
8,736 posts since Oct 2008
Reputation Points: 2,141
Solved Threads: 1,262
Skill Endorsements: 50

chubbs1900>I am trying to self teach C++ and I am to the point of loops. ...

adatapost>Tryout.

1. 
1 1 1 1 1
1 0 0 0 1
1 0 0 0 1
1 0 0 0 1
1 1 1 1 1

2.
1 0 0 0 1
0 1 0 1 0
0 0 1 0 0
0 1 0 1 0
1 0 0 0 1

3.
1
2  4  3
5  7  9  10  8 6
11  13  15  17  18  16 14  12
__avd
Posting Genius (adatapost)
Moderator
8,736 posts since Oct 2008
Reputation Points: 2,141
Solved Threads: 1,262
Skill Endorsements: 50

I appreciate your comments. I post my suggestion according to the question.

The problem is, i am able to get the data from the database and populate my HTML, but after that, if i edit the content on the html file for example a text box. i can't insert those variables to my database again. Any suggestions?

My answer was "Update database".

And now, where is your answer?

__avd
Posting Genius (adatapost)
Moderator
8,736 posts since Oct 2008
Reputation Points: 2,141
Solved Threads: 1,262
Skill Endorsements: 50

Yes, you are on right way.

__avd
Posting Genius (adatapost)
Moderator
8,736 posts since Oct 2008
Reputation Points: 2,141
Solved Threads: 1,262
Skill Endorsements: 50

You have to write code to update database. Please follows post #2 and #3.

__avd
Posting Genius (adatapost)
Moderator
8,736 posts since Oct 2008
Reputation Points: 2,141
Solved Threads: 1,262
Skill Endorsements: 50

I am using the following code to show existing C# forms. It works for some and not for others Suggestions would be appreciated!
Form frmFDDsearch = new frmFDDsearch();
frmFDDsearch.Show();

Undoubtedly, frmFDDsearch is a sub-class of Form class.
You can't access those methods which are defined in frmFDDsearch class.

__avd
Posting Genius (adatapost)
Moderator
8,736 posts since Oct 2008
Reputation Points: 2,141
Solved Threads: 1,262
Skill Endorsements: 50

Cut those brances of a tree on which you are hanging.

__avd
Posting Genius (adatapost)
Moderator
8,736 posts since Oct 2008
Reputation Points: 2,141
Solved Threads: 1,262
Skill Endorsements: 50

Use System.Data.DataSet class or System.Xml.XmlDocument class to load xml document and navigate its element.

__avd
Posting Genius (adatapost)
Moderator
8,736 posts since Oct 2008
Reputation Points: 2,141
Solved Threads: 1,262
Skill Endorsements: 50
__avd
Posting Genius (adatapost)
Moderator
8,736 posts since Oct 2008
Reputation Points: 2,141
Solved Threads: 1,262
Skill Endorsements: 50

Hi All,

Currently i'm using sprintf to copy from pointer variable to a character array.

sprintf(length,"%.*s",(int)len,part1);

where part1 is a pointer to a character array..
length is a characteter array too.

Is there a way i can do the above thingy to copy the part1 to a integer variable?

Thanks in advance

Yes, you can copy content of part1 string to length string variable. Your code is correct.

__avd
Posting Genius (adatapost)
Moderator
8,736 posts since Oct 2008
Reputation Points: 2,141
Solved Threads: 1,262
Skill Endorsements: 50

Dear PhoenixInsilico,

JamesCherrill's anwer is appropriate.
- A field may be an instance variable or a static variable.

They are variables but used in different context.

__avd
Posting Genius (adatapost)
Moderator
8,736 posts since Oct 2008
Reputation Points: 2,141
Solved Threads: 1,262
Skill Endorsements: 50

Dear FussyRose,

Your program is written for any hardware (because you choose java platform). After all, Java source code needs compilation if you want to change the os.

so, compile your java program and run it on Linux without hesitation.

Good Luck

__avd
Posting Genius (adatapost)
Moderator
8,736 posts since Oct 2008
Reputation Points: 2,141
Solved Threads: 1,262
Skill Endorsements: 50

tux4life >Unportable rubbish which doesn't work.
adatapost>Oh!!! Buddy you should have to test this code before judge.

__avd
Posting Genius (adatapost)
Moderator
8,736 posts since Oct 2008
Reputation Points: 2,141
Solved Threads: 1,262
Skill Endorsements: 50

I am trying to convert an array of longs to an array of chars. There are 1081 elements in the long array. Each element is 4 digits long. Is there a function in C++ that will convert a long something I can store in the array or could someone point me in the right direction? I'm not sure how to go about solving this one.

Thanks

Yes, it is.

Here is a code.

char *p;
  long a[4]={1,1,1,1};
  int i=0;
  p=(char *)a;

  while(i<16)
   {
      printf("\n%c",*(p+i));
      i++;
   }
__avd
Posting Genius (adatapost)
Moderator
8,736 posts since Oct 2008
Reputation Points: 2,141
Solved Threads: 1,262
Skill Endorsements: 50

I think the following code help you to solve your problem.

char s1[100]="1123#!3344#!948#!20";
   char *p;
   int i=0;

   do
   {
     p=strtok(s1+i,"#!");
     i=i+strlen(p)+2;
     printf("\n%s",p);
     }while(p!=NULL);

Note: strtok is prototyped in string.h header file.

__avd
Posting Genius (adatapost)
Moderator
8,736 posts since Oct 2008
Reputation Points: 2,141
Solved Threads: 1,262
Skill Endorsements: 50
 
© 2013 DaniWeb® LLC
Page rendered in 0.2704 seconds using 2.64MB